org.eclipse.gef.ui.actions
Class DirectEditAction
java.lang.Object
|
+--org.eclipse.jface.action.Action
|
+--org.eclipse.gef.ui.actions.EditorPartAction
|
+--org.eclipse.gef.ui.actions.SelectionAction
|
+--org.eclipse.gef.ui.actions.DirectEditAction
- All Implemented Interfaces:
- Disposable, IAction, UpdateAction
- public class DirectEditAction
- extends SelectionAction
Field Summary |
static String |
ID
Deprecated. |
Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT |
Methods inherited from class org.eclipse.jface.action.Action |
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, removeAcceleratorText, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- Deprecated.
- See Also:
- Constant Field Values
DirectEditAction
public DirectEditAction(IEditorPart editor)
calculateEnabled
protected boolean calculateEnabled()
- returns
true
if there is exactly 1 EditPart selected that understand DirectEdit.
- Specified by:
calculateEnabled
in class EditorPartAction
getDirectEditRequest
protected Request getDirectEditRequest()
- returns the
Request
objects that is used to calculate enabled state and
run
public void run()
- Specified by:
run
in interface IAction
- Overrides:
run
in class Action
setDirectEditRequest
public void setDirectEditRequest(Request req)
init
protected void init()
- Description copied from class:
EditorPartAction
- Initializes this action.
- Overrides:
init
in class EditorPartAction
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.