Eclipse GEF
3.3

org.eclipse.gef.ui.actions
Class ToggleRulerVisibilityAction

java.lang.Object
  extended byAction
      extended byorg.eclipse.gef.ui.actions.ToggleRulerVisibilityAction

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
See Also:
Serialized Form

Field Summary
protected  GraphicalViewer diagramViewer
          The viewer whose ruler visibility property is to be toggled
 
Constructor Summary
ToggleRulerVisibilityAction(GraphicalViewer diagramViewer)
          Constructor
 
Method Summary
 boolean isChecked()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Method Detail

isChecked

public boolean isChecked()
See Also:
org.eclipse.jface.action.IAction#isChecked()

run

public void run()
See Also:
org.eclipse.jface.action.IAction#run()

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.