Class ToggleRulerVisibilityAction

  • All Implemented Interfaces:
    IAction

    public class ToggleRulerVisibilityAction
    extends Action
    An action that toggles the ruler visibility property on the given viewer. This action can handle the case where that property is not set on the viewer initially.
    Since:
    3.0
    • Field Detail

      • diagramViewer

        protected GraphicalViewer diagramViewer
        The viewer whose ruler visibility property is to be toggled
    • Constructor Detail

      • ToggleRulerVisibilityAction

        public ToggleRulerVisibilityAction​(GraphicalViewer diagramViewer)
        Constructor
        Parameters:
        diagramViewer - the viewer whose ruler visibility property is to be toggled