public class ActionDeleteShape
extends org.eclipse.jface.action.Action
Action for deleting the currently selected shapes from the ShapeTreeView
Constructor and Description |
---|
ActionDeleteShape(ShapeTreeView view)
Constructor for setting the current ShapeTreeViewer
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor()
Returns the image descriptor associated with the delete action's icon
|
void |
run()
Runs this action
|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
public ActionDeleteShape(ShapeTreeView view)
Constructor for setting the current ShapeTreeViewer
view
- The current ShapeTreeView
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor
in interface org.eclipse.jface.action.IAction
getImageDescriptor
in class org.eclipse.jface.action.Action
Action.getImageDescriptor()
public void run()
Runs this action
Each action implementation must define the steps needed to carry out this action.
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action