public class ExplorersViewSelectionLMVHandler extends AbstractLogicalModelViewHandler
Constructor and Description |
---|
ExplorersViewSelectionLMVHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(IWorkbenchPart part,
ISelection selection)
This will be called to determine whether a selection must be listened by the logical model view.
|
Collection<IFile> |
getFilesFromSelection(ISelection selection)
Retrieve the files associated with the given selection.
|
canHandle, getFilesFromWorkbenchPart, getLogicalModelResources, getLogicalModelResources
public boolean canHandle(IWorkbenchPart part, ISelection selection)
canHandle
in interface ILogicalModelViewHandler
canHandle
in class AbstractLogicalModelViewHandler
part
- the IWorkbenchPart
of the editor on which the selection occurs.selection
- the ISelection
to test.public Collection<IFile> getFilesFromSelection(ISelection selection)
getFilesFromSelection
in interface ILogicalModelViewHandler
getFilesFromSelection
in class AbstractLogicalModelViewHandler
selection
- the ISelection
.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.