Package org.eclipse.emf.edapt.common.ui
Class SelectionUtils
- java.lang.Object
-
- org.eclipse.emf.edapt.common.ui.SelectionUtils
-
public final class SelectionUtils extends Object
Helper class for selection.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> V
getSelectedElement(org.eclipse.jface.viewers.ISelection selection, Class<V> type)
Get the selected element of type V.static <V> List<V>
getSelectedElements(org.eclipse.jface.viewers.ISelection selection, Class<V> type)
Get a list of selected elements of type V.
-
-
-
Method Detail
-
getSelectedElement
public static <V> V getSelectedElement(org.eclipse.jface.viewers.ISelection selection, Class<V> type)
Get the selected element of type V.
-
-