public abstract class AbstractLogicalModelViewHandler extends Object implements ILogicalModelViewHandler
Constructor and Description |
---|
AbstractLogicalModelViewHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(IWorkbenchPart part,
ISelection selection)
This will be called to determine whether the given editor or the given selection must be listened by
the logical model view.
|
Collection<IFile> |
getFiles(IWorkbenchPart part,
ISelection selection)
Retrieve the files associated with the given editor (via its
IWorkbenchPart ) or the given
selection. |
Collection<SynchronizationModel> |
getSynchronizationModels(IWorkbenchPart part,
ISelection selection,
IProgressMonitor monitor)
Get the logical models associated with the given editor or selection.
|
public boolean canHandle(IWorkbenchPart part, ISelection selection)
canHandle
in interface ILogicalModelViewHandler
part
- the IWorkbenchPart
of the editor on which the selection occurs.selection
- the ISelection
to test.public Collection<IFile> getFiles(IWorkbenchPart part, ISelection selection)
IWorkbenchPart
) or the given
selection.getFiles
in interface ILogicalModelViewHandler
part
- the IWorkbenchPart
of the editor on which the selection occurs.selection
- the ISelection
.public Collection<SynchronizationModel> getSynchronizationModels(IWorkbenchPart part, ISelection selection, IProgressMonitor monitor)
getSynchronizationModels
in interface ILogicalModelViewHandler
part
- the IWorkbenchPart
of the editor on which the selection occurs.selection
- the ISelection
.monitor
- to monitor the process.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.