public class MatchWidthAction extends MatchSizeAction
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 and Description |
|---|
MatchWidthAction(IWorkbenchPart part)
Constructs a
MatchWidthAction and associates it with the
given part. |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getPreciseHeightDelta(PrecisionRectangle precisePartBounds,
PrecisionRectangle precisePrimaryBounds)
Returns 0 to make this action affect only the width delta.
|
calculateEnabled, getPreciseWidthDelta, rundispose, getSelectedObjects, getSelection, handleSelectionChanged, setSelection, setSelectionProvider, updateexecute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPartconvertAccelerator, 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, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic MatchWidthAction(IWorkbenchPart part)
MatchWidthAction and associates it with the
given part.part - The workbench part associated with this MatchWidthActionprotected double getPreciseHeightDelta(PrecisionRectangle precisePartBounds, PrecisionRectangle precisePrimaryBounds)
getPreciseHeightDelta in class MatchSizeActionprecisePartBounds - the precise bounds of the EditPart's Figure to be matchedprecisePrimaryBounds - the precise bounds of the Primary Selection EditPart's FigureCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.