|
Eclipse GEF 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.ui.actions.WorkbenchPartAction
org.eclipse.gef.ui.actions.SelectionAction
org.eclipse.gef.ui.actions.AlignmentAction
An action to align the selected parts.
| Field Summary | |
static String |
ID_ALIGN_BOTTOM
Indicates that the bottom edges should be aligned. |
static String |
ID_ALIGN_CENTER
Indicates that the horizontal centers should be aligned. |
static String |
ID_ALIGN_LEFT
Indicates that the left edges should be aligned. |
static String |
ID_ALIGN_MIDDLE
Indicates that the vertical midpoints should be aligned. |
static String |
ID_ALIGN_RIGHT
Indicates that the right edges should be aligned. |
static String |
ID_ALIGN_TOP
Indicates that the top edges should be aligned. |
| Constructor Summary | |
AlignmentAction(IEditorPart editor,
int align)
Deprecated. use AlignmentAction(IWorkbenchPart, int align) |
|
AlignmentAction(IWorkbenchPart part,
int align)
Constructs an AlignmentAction with the given part and alignment ID. |
|
| Method Summary | |
protected Rectangle |
calculateAlignmentRectangle(Request request)
Returns the alignment rectangle to which all selected parts should be aligned. |
protected boolean |
calculateEnabled()
Calculates and returns the enabled state of this action. |
void |
dispose()
Disposes the action when it is no longer needed. |
protected List |
getOperationSet(Request request)
Returns the list of editparts which will participate in alignment. |
protected void |
initUI()
Initializes the actions UI presentation. |
void |
run()
|
| Methods inherited from class org.eclipse.gef.ui.actions.SelectionAction |
getSelectedObjects, getSelection, handleSelectionChanged, setSelection, setSelectionProvider, update |
| Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction |
execute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ID_ALIGN_BOTTOM
public static final String ID_ALIGN_CENTER
public static final String ID_ALIGN_LEFT
public static final String ID_ALIGN_MIDDLE
public static final String ID_ALIGN_RIGHT
public static final String ID_ALIGN_TOP
| Constructor Detail |
public AlignmentAction(IEditorPart editor,
int align)
editor - the editoralign - the alignment ID
public AlignmentAction(IWorkbenchPart part,
int align)
part - the workbench part used to obtain contextalign - the aligment ID.| Method Detail |
protected Rectangle calculateAlignmentRectangle(Request request)
request - the alignment Request
protected boolean calculateEnabled()
WorkbenchPartAction
calculateEnabled in class WorkbenchPartActiontrue if the action is enabledWorkbenchPartAction.calculateEnabled()public void dispose()
WorkbenchPartAction
dispose in class SelectionActionDisposable.dispose()protected List getOperationSet(Request request)
request - the alignment request
protected void initUI()
public void run()
IAction.run()
|
Eclipse GEF 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||