|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAction
org.eclipse.egf.core.ui.workbench.action.navigator.AbstractNavigatorAction
public abstract class AbstractNavigatorAction
Base class to implement action located in the context menu of a tree viewer based on the CommonNavigator.
| Constructor Summary | |
|---|---|
protected |
AbstractNavigatorAction(ISelectionProvider selectionProvider_p)
Constructor.. |
protected |
AbstractNavigatorAction(Shell shell_p,
ISelectionProvider selectionProvider_p)
Constructor. |
| Method Summary | |
|---|---|
protected abstract Class<?> |
getModelElementClass()
Get the model element class for which this action is enabled for. |
protected Object |
getSelection(Class<?> objectType_p)
Get the current selected object |
protected ISelectionProvider |
getSelectionProvider()
Get the selection provider. |
protected ISharedImages |
getSharedImages()
Get the shared images. |
protected Shell |
getShell()
Get the shell |
boolean |
isSelectionCompatible()
Returns whether this action is compatible with current selection. |
protected abstract void |
setSelectedElement(Object object_p)
Set given object as the selected object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractNavigatorAction(ISelectionProvider selectionProvider_p)
selectionProvider_p -
protected AbstractNavigatorAction(Shell shell_p,
ISelectionProvider selectionProvider_p)
shell_p - selectionProvider_p - | Method Detail |
|---|
protected Object getSelection(Class<?> objectType_p)
objectType_p - the object type that the selection must be an instance ofprotected Shell getShell()
public boolean isSelectionCompatible()
protected abstract Class<?> getModelElementClass()
protected abstract void setSelectedElement(Object object_p)
object_p - protected ISharedImages getSharedImages()
protected ISelectionProvider getSelectionProvider()
|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.