|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.gef.ui.actions.WorkbenchPartAction
org.eclipse.gef.ui.actions.SelectionAction
pl.edu.agh.cast.schema.editor.action.AlignmentAction
public final class AlignmentAction
Alignment action. This class is copy of AlignmentAction
, however because of
optimalization purpose it always returns true
in calculateEnabled()
method.
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. |
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, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
---|---|
AlignmentAction(org.eclipse.ui.IWorkbenchPart part,
int align)
Constructs an AlignmentAction with the given part and alignment ID. |
Method Summary | |
---|---|
protected org.eclipse.draw2d.geometry.Rectangle |
calculateAlignmentRectangle(org.eclipse.gef.Request request)
Returns the alignment rectangle to which all selected parts should be aligned. |
protected boolean |
calculateEnabled()
|
void |
dispose()
|
protected List<org.eclipse.gef.EditPart> |
getOperationSet(org.eclipse.gef.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 org.eclipse.jface.action.Action |
---|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Methods inherited from class org.eclipse.jface.action.AbstractAction |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
---|
addPropertyChangeListener, removePropertyChangeListener |
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(org.eclipse.ui.IWorkbenchPart part, int align)
part
- the workbench part used to obtain contextalign
- the aligment ID.Method Detail |
---|
protected org.eclipse.draw2d.geometry.Rectangle calculateAlignmentRectangle(org.eclipse.gef.Request request)
request
- the alignment Request
protected boolean calculateEnabled()
calculateEnabled
in class org.eclipse.gef.ui.actions.WorkbenchPartAction
WorkbenchPartAction.calculateEnabled()
public void dispose()
dispose
in interface org.eclipse.gef.Disposable
dispose
in class org.eclipse.gef.ui.actions.SelectionAction
SelectionAction.dispose()
protected List<org.eclipse.gef.EditPart> getOperationSet(org.eclipse.gef.Request request)
request
- the alignment request
protected void initUI()
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
Action.run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |