public class ActionReplicateShape
extends org.eclipse.jface.action.Action
Opens a dialog box to replicate the selected shape
This action should be enabled only when exactly one shape is selected.
Constructor and Description |
---|
ActionReplicateShape(ShapeTreeView view)
Initializes the instance with the current ShapeTreeView
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor() |
void |
run()
Opens the replicate dialog box and clones the selected shape to the
properties
|
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 ActionReplicateShape(ShapeTreeView view)
Initializes the instance with the current ShapeTreeView
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
public void run()
Opens the replicate dialog box and clones the selected shape to the properties
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action