public class MatchHeightAction 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 |
---|
MatchHeightAction(IWorkbenchPart part)
Constructs a
MatchHeightAction and associates it with the
given part. |
Modifier and Type | Method and Description |
---|---|
protected double |
getPreciseWidthDelta(PrecisionRectangle precisePartBounds,
PrecisionRectangle precisePrimaryBounds)
Returns 0 to make this action affect only the height delta.
|
calculateEnabled, getPreciseHeightDelta, 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 MatchHeightAction(IWorkbenchPart part)
MatchHeightAction
and associates it with the
given part.part
- The workbench part associated with this MatchHeightActionprotected double getPreciseWidthDelta(PrecisionRectangle precisePartBounds, PrecisionRectangle precisePrimaryBounds)
getPreciseWidthDelta
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.