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