|
Runtime | ||||||||||
| 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.gmf.runtime.common.ui.action.AbstractActionHandler
org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction
org.eclipse.gmf.runtime.diagram.ui.actions.AlignAction
actions.AlignmentAction| Nested Class Summary |
| Nested classes inherited from class org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress |
IActionWithProgress.WorkIndicatorType |
| Field Summary |
| 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 | |
AlignAction(IWorkbenchPage workbenchPage,
java.lang.String id,
int align)
Constructs an AlignAction with the given part and alignment ID. |
|
AlignAction(IWorkbenchPage workbenchPage,
java.lang.String id,
int align,
boolean isToolbarItem)
Constructs an AlignAction with the given part and alignment ID. |
|
| Method Summary | |
protected Rectangle |
calculateAlignmentRectangle()
Returns the alignment rectangle to which all selected parts should be aligned. |
protected java.util.List |
createOperationSet()
Filters the selected objects and returns only editparts that understands the request |
protected Request |
createTargetRequest()
Creates a new target request |
protected void |
initUI()
Initializes the actions UI presentation. |
protected boolean |
isOperationHistoryListener()
Retrieves a Boolean indicating whether this action handler is interested in operation history changed events. |
protected boolean |
isSelectionListener()
Does this action need to listen to selection change events? |
protected void |
updateTargetRequest()
updates the target request. |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction |
calculateEnabled, clearTargetRequest, dispose, doRun, execute, filterEditPartsMatching, getCommand, getCommand, getCommandLabel, getDiagramCommandStack, getDiagramEditDomain, getDiagramEditPart, getDiagramGraphicalViewer, getDiagramWorkbenchPart, getOperationSet, getPreferencesHint, getSelectedObjects, getTargetEditParts, getTargetRequest, refresh, setTargetRequest |
| Methods inherited from class org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler |
contributedToPart, getActionManager, getLabel, getOperationHistory, getPartListener, getSelection, getStructuredSelection, getUndoContext, getWorkbenchPage, getWorkbenchPart, getWorkIndicatorType, handle, historyNotification, init, isDisposed, isPropertyListener, isRunnable, isSetup, needsSetup, openErrorDialog, propertyChanged, run, run, runWithEvent, selectionChanged, setDisposed, setPartSelector, setSetup, setup, setWorkbenchPart |
| 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, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Constructor Detail |
public AlignAction(IWorkbenchPage workbenchPage,
java.lang.String id,
int align)
id - the action ID.align - the aligment ID.
public AlignAction(IWorkbenchPage workbenchPage,
java.lang.String id,
int align,
boolean isToolbarItem)
id - the action ID.align - the aligment ID.isToolbarItem - the indicator of whether or not this is a toolbar action
-as opposed to a context-menu action.| Method Detail |
protected void initUI()
protected boolean isSelectionListener()
DiagramActionActions that are only contributed to the popup menu (and not toolbar or main menus) will not receive selection events at all. The refresh() method will be called when the context menu is about to show.
isSelectionListener in class DiagramActionprotected boolean isOperationHistoryListener()
AbstractActionHandler
isOperationHistoryListener in class AbstractActionHandlertrue if this action handler is interested;
false otherwise.protected java.util.List createOperationSet()
DiagramAction
createOperationSet in class DiagramActionprotected Request createTargetRequest()
DiagramAction
createTargetRequest in class DiagramActionprotected void updateTargetRequest()
DiagramAction
updateTargetRequest in class DiagramActionprotected Rectangle calculateAlignmentRectangle()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.