org.eclipse.gmt.umlx.editor.tools
Class NodeCreationTool

java.lang.Object
  extended by org.eclipse.gef.util.FlagSupport
      extended by org.eclipse.gef.tools.AbstractTool
          extended by org.eclipse.gef.tools.TargetingTool
              extended by org.eclipse.gef.tools.CreationTool
                  extended by org.eclipse.gmt.umlx.editor.tools.NodeCreationTool
All Implemented Interfaces:
org.eclipse.gef.RequestConstants, org.eclipse.gef.Tool

public class NodeCreationTool
extends org.eclipse.gef.tools.CreationTool

NodeCreationTool is a CreationTool that does not select its objects after execution. This is appropriate when using DiagramCommandStack that handles selection consistently across execute/undo/redo.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gef.tools.AbstractTool
org.eclipse.gef.tools.AbstractTool.Input
 
Field Summary
 
Fields inherited from class org.eclipse.gef.tools.CreationTool
PROPERTY_CREATION_FACTORY
 
Fields inherited from class org.eclipse.gef.tools.AbstractTool
PROPERTY_UNLOAD_WHEN_FINISHED
 
Fields inherited from interface org.eclipse.gef.RequestConstants
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
 
Constructor Summary
NodeCreationTool()
           
 
Method Summary
 SheetViewer getCurrentSheetViewerOrNull()
           
 void setFactory(org.eclipse.gef.requests.CreationFactory factory)
          Sets the creation factory used to create the new edit parts.
 
Methods inherited from class org.eclipse.gef.tools.CreationTool
deactivate
 
Methods inherited from class org.eclipse.gef.tools.AbstractTool
activate, commitDrag, focusGained, focusLost, keyDown, keyTraversed, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, mouseWheelScrolled, nativeDragFinished, nativeDragStarted, setDefaultCursor, setDisabledCursor, setEditDomain, setProperties, setUnloadWhenFinished, setViewer, viewerEntered, viewerExited
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeCreationTool

public NodeCreationTool()
Method Detail

getCurrentSheetViewerOrNull

public SheetViewer getCurrentSheetViewerOrNull()

setFactory

public void setFactory(org.eclipse.gef.requests.CreationFactory factory)
Sets the creation factory used to create the new edit parts.

Overrides:
setFactory in class org.eclipse.gef.tools.CreationTool
Parameters:
factory - the factory