GEF v2.0

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, ISelectionListener

public class DirectEditAction
extends SelectionAction


Field Summary
static String ID
           
 
Fields inherited from class org.eclipse.gef.ui.actions.EditorPartAction
DYNAMIC, style
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
DirectEditAction(IEditorPart editor)
           
DirectEditAction(IEditorPart editor, int style)
           
 
Method Summary
protected  boolean calculateEnabled()
          returns true if there is exactly 1 EditPart selected that understand DirectEdit.
protected  Request getDirectEditRequest()
          returns the Request objects that is used to calculate enabled state and
protected  void init()
          Initializes this action.
 void run()
           
 void setDirectEditRequest(Request req)
           
 
Methods inherited from class org.eclipse.gef.ui.actions.SelectionAction
dispose, getSelectedObjects, getSelection, handleSelectionChanged, hookEditorPart, selectionChanged, setSelection, unhookEditorPart
 
Methods inherited from class org.eclipse.gef.ui.actions.EditorPartAction
checkStyle, execute, getCommandStack, getEditorPart, isDynamic, isEnabled, refresh, setEditorPart
 
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
 

Field Detail

ID

public static final String ID
Constructor Detail

DirectEditAction

public DirectEditAction(IEditorPart editor)

DirectEditAction

public DirectEditAction(IEditorPart editor,
                        int style)
Method Detail

calculateEnabled

protected boolean calculateEnabled()
returns true if there is exactly 1 EditPart selected that understand DirectEdit.
Overrides:
calculateEnabled in class EditorPartAction

getDirectEditRequest

protected Request getDirectEditRequest()
returns the Request objects that is used to calculate enabled state and

run

public void run()
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

GEF v2.0