org.eclipse.gmf.runtime.lite.requests
Class CreateConnectionRequestEx

java.lang.Object
  extended by org.eclipse.gef.Request
      extended by org.eclipse.gef.requests.CreateRequest
          extended by org.eclipse.gef.requests.CreateConnectionRequest
              extended by org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx
All Implemented Interfaces:
org.eclipse.gef.requests.DropRequest, org.eclipse.gef.requests.TargetRequest

public class CreateConnectionRequestEx
extends org.eclipse.gef.requests.CreateConnectionRequest

A Request to create a connection of one of the specified types (Visual IDs).


Constructor Summary
CreateConnectionRequestEx(int[] visualIds)
          Creates a new request to create a connection of the given object types.
CreateConnectionRequestEx(String modelID, int[] visualIds)
           
 
Method Summary
 String getModelID()
           
 int[] getVisualIds()
          Returns the types (Visual IDs) of objects whose creation is requested.
 void setCreatedObject(Object createdObject)
           
 
Methods inherited from class org.eclipse.gef.requests.CreateConnectionRequest
getSourceEditPart, getStartCommand, getTargetEditPart, setSourceEditPart, setStartCommand, setTargetEditPart
 
Methods inherited from class org.eclipse.gef.requests.CreateRequest
getFactory, getLocation, getNewObject, getNewObjectType, getSize, isSnapToEnabled, setFactory, setLocation, setSize, setSnapToEnabled
 
Methods inherited from class org.eclipse.gef.Request
getExtendedData, getType, setExtendedData, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateConnectionRequestEx

public CreateConnectionRequestEx(int[] visualIds)
Creates a new request to create a connection of the given object types.


CreateConnectionRequestEx

public CreateConnectionRequestEx(String modelID,
                                 int[] visualIds)
Method Detail

getVisualIds

public int[] getVisualIds()
Returns the types (Visual IDs) of objects whose creation is requested.


setCreatedObject

public void setCreatedObject(Object createdObject)

getModelID

public String getModelID()


Copyright © 2012. All Rights Reserved.