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.String
ACTION_DEFINITION_ID
static java.lang.String
ACTION_ID
static java.lang.String
TEXT
static java.lang.String
TOOL_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 boolean
calculateEnabled()
IContext
createContext(PictogramElement pe)
boolean
isAvailable()
IFeature
provideFeatureForContext(IContext context)
void
run()
-
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:
isAvailable
in interfaceIAvailable
-
calculateEnabled
protected boolean calculateEnabled()
- Specified by:
calculateEnabled
in classorg.eclipse.gef.ui.actions.WorkbenchPartAction
-
run
public void run()
- Specified by:
run
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
run
in classorg.eclipse.jface.action.Action
-
provideFeatureForContext
public IFeature provideFeatureForContext(IContext context)
- Specified by:
provideFeatureForContext
in interfaceIContextAndFeatureProvider
-
createContext
public IContext createContext(PictogramElement pe)
- Specified by:
createContext
in interfaceIContextAndFeatureProvider
-
-