Eclipse GEF
2.1

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
 
Constructor Summary
DirectEditAction(IEditorPart editor)
           
 
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, setSelection, update
 
Methods inherited from class org.eclipse.gef.ui.actions.EditorPartAction
execute, getCommandStack, getEditorPart, 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
Deprecated.  

See Also:
Constant Field Values
Constructor Detail

DirectEditAction

public DirectEditAction(IEditorPart editor)
Method Detail

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

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.