Class ExplorersViewSelectionLMVHandler

    • Constructor Detail

      • ExplorersViewSelectionLMVHandler

        public ExplorersViewSelectionLMVHandler()
    • Method Detail

      • canHandle

        public boolean canHandle​(org.eclipse.ui.IWorkbenchPart part,
                                 org.eclipse.jface.viewers.ISelection selection)
        This will be called to determine whether a selection must be listened by the logical model view.
        Specified by:
        canHandle in interface ILogicalModelViewHandler
        Overrides:
        canHandle in class AbstractLogicalModelViewHandler
        Parameters:
        part - the IWorkbenchPart of the editor on which the selection occurs.
        selection - the ISelection to test.
        Returns:
        true if the selection must be listened, false otherwise.
      • getFiles

        public Collection<org.eclipse.core.resources.IFile> getFiles​(org.eclipse.ui.IWorkbenchPart part,
                                                                     org.eclipse.jface.viewers.ISelection selection)
        Retrieve the files associated with the given selection.
        Specified by:
        getFiles in interface ILogicalModelViewHandler
        Overrides:
        getFiles in class AbstractLogicalModelViewHandler
        Parameters:
        part - the IWorkbenchPart of the editor.
        selection - the ISelection.
        Returns:
        the files associated with the given selection.