Class MatchWidthAction

All Implemented Interfaces:
Disposable, UpdateAction, IAction

public class MatchWidthAction extends MatchSizeAction
An action that matches the width of all selected EditPart's Figures to the width of the Primary Selection EditPart's Figure.
  • Constructor Details

    • MatchWidthAction

      public MatchWidthAction(IWorkbenchPart part)
      Constructs a MatchWidthAction and associates it with the given part.
      Parameters:
      part - The workbench part associated with this MatchWidthAction
  • Method Details

    • getPreciseHeightDelta

      protected double getPreciseHeightDelta(org.eclipse.draw2d.geometry.PrecisionRectangle precisePartBounds, org.eclipse.draw2d.geometry.PrecisionRectangle precisePrimaryBounds)
      Returns 0 to make this action affect only the width delta.
      Overrides:
      getPreciseHeightDelta in class MatchSizeAction
      Parameters:
      precisePartBounds - the precise bounds of the EditPart's Figure to be matched
      precisePrimaryBounds - the precise bounds of the Primary Selection EditPart's Figure
      Returns:
      0.