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, run
dispose, getSelectedObjects, getSelection, handleSelectionChanged, setSelection, setSelectionProvider, update
execute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart
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
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public 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 MatchSizeAction
precisePartBounds
- 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.