Class ExplorersViewSelectionLMVHandler
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.view.AbstractLogicalModelViewHandler
org.eclipse.emf.compare.ide.ui.internal.logical.view.ExplorersViewSelectionLMVHandler
- All Implemented Interfaces:
ILogicalModelViewHandler
Handle, for the Logical Model View, the item(s) selected in Project Explorer View or Package Explorer View.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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.Methods inherited from class org.eclipse.emf.compare.ide.ui.internal.logical.view.AbstractLogicalModelViewHandler
getSynchronizationModels
-
Constructor Details
-
ExplorersViewSelectionLMVHandler
public ExplorersViewSelectionLMVHandler()
-
-
Method Details
-
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 interfaceILogicalModelViewHandler
- Overrides:
canHandle
in classAbstractLogicalModelViewHandler
- Parameters:
part
- theIWorkbenchPart
of the editor on which the selection occurs.selection
- theISelection
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 interfaceILogicalModelViewHandler
- Overrides:
getFiles
in classAbstractLogicalModelViewHandler
- Parameters:
part
- theIWorkbenchPart
of the editor.selection
- theISelection
.- Returns:
- the files associated with the given selection.
-