Class RemoveAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.action.AbstractAction
-
- org.eclipse.jface.action.Action
-
- org.eclipse.gef.ui.actions.WorkbenchPartAction
-
- org.eclipse.gef.ui.actions.SelectionAction
-
- org.eclipse.graphiti.ui.internal.action.AbstractPreDefinedAction
-
- org.eclipse.graphiti.ui.internal.action.RemoveAction
-
- All Implemented Interfaces:
org.eclipse.gef.Disposable,org.eclipse.gef.ui.actions.UpdateAction,IAvailable,IContextAndFeatureProvider,org.eclipse.jface.action.IAction
public class RemoveAction extends AbstractPreDefinedAction implements IContextAndFeatureProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTION_DEFINITION_IDstatic java.lang.StringACTION_IDstatic java.lang.StringTEXTstatic java.lang.StringTOOL_TIP
-
Constructor Summary
Constructors Constructor Description RemoveAction(org.eclipse.ui.IWorkbenchPart part, IConfigurationProvider configurationProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancalculateEnabled()IContextcreateContext(PictogramElement pe)booleanisAvailable()IFeatureprovideFeatureForContext(IContext context)voidrun()-
Methods inherited from class org.eclipse.graphiti.ui.internal.action.AbstractPreDefinedAction
executeOnCommandStack, genericRun, getConfigurationProvider, getFeatureProvider, getSelectedPictogramElements
-
Methods inherited from class org.eclipse.gef.ui.actions.SelectionAction
dispose, getSelectedObjects, getSelection, handleSelectionChanged, setSelection, setSelectionProvider, update
-
Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction
execute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart
-
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
-
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
-
-
-
-
Field Detail
-
TOOL_TIP
public static final java.lang.String TOOL_TIP
-
TEXT
public static final java.lang.String TEXT
-
ACTION_ID
public static final java.lang.String ACTION_ID
- See Also:
- Constant Field Values
-
ACTION_DEFINITION_ID
public static final java.lang.String ACTION_DEFINITION_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoveAction
public RemoveAction(org.eclipse.ui.IWorkbenchPart part, IConfigurationProvider configurationProvider)
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailablein interfaceIAvailable
-
calculateEnabled
protected boolean calculateEnabled()
- Specified by:
calculateEnabledin classorg.eclipse.gef.ui.actions.WorkbenchPartAction
-
run
public void run()
- Specified by:
runin interfaceorg.eclipse.jface.action.IAction- Overrides:
runin classorg.eclipse.jface.action.Action
-
provideFeatureForContext
public IFeature provideFeatureForContext(IContext context)
- Specified by:
provideFeatureForContextin interfaceIContextAndFeatureProvider
-
createContext
public IContext createContext(PictogramElement pe)
- Specified by:
createContextin interfaceIContextAndFeatureProvider
-
-