Eclipse GEF
2.1

org.eclipse.gef.ui.actions
Class AlignmentAction

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.AlignmentAction
All Implemented Interfaces:
Disposable, IAction, UpdateAction

public final class AlignmentAction
extends SelectionAction


Field Summary
static String ID_ALIGN_BOTTOM
          Deprecated.  
static String ID_ALIGN_CENTER
          Deprecated.  
static String ID_ALIGN_LEFT
          Deprecated.  
static String ID_ALIGN_MIDDLE
          Deprecated.  
static String ID_ALIGN_RIGHT
          Deprecated.  
static String ID_ALIGN_TOP
          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
AlignmentAction(IEditorPart editor, int align)
           
 
Method Summary
protected  org.eclipse.draw2d.geometry.Rectangle calculateAlignmentRectangle(Request request)
           
protected  boolean calculateEnabled()
          Calculates and returns the enabled state of this action.
 void dispose()
          Called when the action is about to be disposed.
 ImageDescriptor getHoverImageDescriptor()
           
protected  List getOperationSet(Request request)
           
protected  void init()
          Initializes this action.
 void run()
           
 
Methods inherited from class org.eclipse.gef.ui.actions.SelectionAction
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, 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_ALIGN_LEFT

public static final String ID_ALIGN_LEFT
Deprecated.  

See Also:
Constant Field Values

ID_ALIGN_RIGHT

public static final String ID_ALIGN_RIGHT
Deprecated.  

See Also:
Constant Field Values

ID_ALIGN_TOP

public static final String ID_ALIGN_TOP
Deprecated.  

See Also:
Constant Field Values

ID_ALIGN_BOTTOM

public static final String ID_ALIGN_BOTTOM
Deprecated.  

See Also:
Constant Field Values

ID_ALIGN_CENTER

public static final String ID_ALIGN_CENTER
Deprecated.  

See Also:
Constant Field Values

ID_ALIGN_MIDDLE

public static final String ID_ALIGN_MIDDLE
Deprecated.  

See Also:
Constant Field Values
Constructor Detail

AlignmentAction

public AlignmentAction(IEditorPart editor,
                       int align)
Method Detail

calculateEnabled

protected boolean calculateEnabled()
Description copied from class: EditorPartAction
Calculates and returns the enabled state of this action.

Specified by:
calculateEnabled in class EditorPartAction

calculateAlignmentRectangle

protected org.eclipse.draw2d.geometry.Rectangle calculateAlignmentRectangle(Request request)

dispose

public void dispose()
Description copied from class: EditorPartAction
Called when the action is about to be disposed.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class SelectionAction

getHoverImageDescriptor

public ImageDescriptor getHoverImageDescriptor()
Specified by:
getHoverImageDescriptor in interface IAction
Overrides:
getHoverImageDescriptor in class Action

getOperationSet

protected List getOperationSet(Request request)

init

protected void init()
Description copied from class: EditorPartAction
Initializes this action.

Overrides:
init in class EditorPartAction

run

public void run()
Specified by:
run in interface IAction
Overrides:
run in class Action

Eclipse GEF
2.1

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