|
Eclipse GEF 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.ui.actions.WorkbenchPartAction
org.eclipse.gef.ui.actions.SelectionAction
Superclass for an action needing the current selection.
| Constructor Summary | |
SelectionAction(IWorkbenchPart part)
Creates a SelectionAction and associates it with the given workbench part. |
|
SelectionAction(IWorkbenchPart part,
int style)
Creates a SelectionAction and associates it with the given editor. |
|
| Method Summary | |
void |
dispose()
Disposes the action when it is no longer needed. |
protected List |
getSelectedObjects()
Returns a List containing the currently
selected objects. |
protected ISelection |
getSelection()
Gets the current selection. |
protected void |
handleSelectionChanged()
Called when the selection is changed. |
protected void |
setSelection(ISelection selection)
Sets the current selection and calls on subclasses to handle the selectionChanged event. |
void |
setSelectionProvider(ISelectionProvider provider)
May be used to provide an alternative selection source other than the workbench's selection service. |
void |
update()
|
| Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction |
calculateEnabled, execute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SelectionAction(IWorkbenchPart part,
int style)
SelectionAction and associates it with the given editor.
part - The workbench part associated with this actionstyle - the style for this actionpublic SelectionAction(IWorkbenchPart part)
SelectionAction and associates it with the given workbench part.
part - the workbench part| Method Detail |
public void dispose()
WorkbenchPartAction
dispose in class WorkbenchPartActionDisposable.dispose()protected List getSelectedObjects()
List containing the currently
selected objects.
protected ISelection getSelection()
protected void handleSelectionChanged()
protected void setSelection(ISelection selection)
selection - The new selection.public void setSelectionProvider(ISelectionProvider provider)
null, in which case the selection is obtained using the partsite's
selection service.
provider - null or a selection providerpublic void update()
update in class WorkbenchPartActionWorkbenchPartAction.update()
|
Eclipse GEF 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||