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

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.AbstractConnectionCreationTool
                  extended by org.eclipse.gef.tools.ConnectionCreationTool
                      extended by org.eclipse.gmt.umlx.editor.tools.LinkCreationTool
All Implemented Interfaces:
org.eclipse.gef.RequestConstants, org.eclipse.gef.Tool

public class LinkCreationTool
extends org.eclipse.gef.tools.ConnectionCreationTool

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.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
LinkCreationTool()
           
 
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.ConnectionCreationTool
mouseWheelScrolled
 
Methods inherited from class org.eclipse.gef.tools.AbstractConnectionCreationTool
deactivate
 
Methods inherited from class org.eclipse.gef.tools.AbstractTool
activate, commitDrag, focusGained, focusLost, keyDown, keyTraversed, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, 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

LinkCreationTool

public LinkCreationTool()
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.AbstractConnectionCreationTool
Parameters:
factory - the factory