Class SelectionUtils


  • public final class SelectionUtils
    extends Object
    Helper class for selection.
    Version:
    $Rev$
    Author:
    herrmama, $Author$
    • Method Detail

      • getSelectedElement

        public static <V> V getSelectedElement​(org.eclipse.jface.viewers.ISelection selection,
                                               Class<V> type)
        Get the selected element of type V.
      • getSelectedElements

        public static <V> List<V> getSelectedElements​(org.eclipse.jface.viewers.ISelection selection,
                                                      Class<V> type)
        Get a list of selected elements of type V.