Eclipse Papercut #15 – Simplified access to the structured selection of Viewer

Eclipse Mars will make access to the structured selection of a StructuredViewer easier. So instead of:

ISelection selection = combo.getSelection();
IStructuredSelection sel = (IStructuredSelection) selection;

You can write

IStructuredSelection sel = combo.getStructuredSelection();

Not a big one, but one of the little annoying things. See the rest of the Eclipse papercut series

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences,

He is the primary author of vogella.com. With more than one million visitors per month this website is one of the central sources for Java, Eclipse and Android programming information.

This entry was posted in Eclipse, Lars Vogel, Papercut and tagged , . Bookmark the permalink.