Eclipse GEF
3.3

org.eclipse.gef.ui.actions
Class ToggleSnapToGeometryAction

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

public class ToggleSnapToGeometryAction
extends Action

An action that toggles the snap to geometry 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

Constructor Summary
ToggleSnapToGeometryAction(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
 

Constructor Detail

ToggleSnapToGeometryAction

public ToggleSnapToGeometryAction(GraphicalViewer diagramViewer)
Constructor

Parameters:
diagramViewer - the GraphicalViewer whose snap to geometry 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.