Eclipse GEF
2.1

org.eclipse.gef.requests
Class CreateConnectionRequest

java.lang.Object
  |
  +--org.eclipse.gef.Request
        |
        +--org.eclipse.gef.requests.CreateRequest
              |
              +--org.eclipse.gef.requests.CreateConnectionRequest
All Implemented Interfaces:
DropRequest, TargetRequest

public class CreateConnectionRequest
extends CreateRequest
implements TargetRequest

A Request to create a new Connection.


Constructor Summary
CreateConnectionRequest()
           
 
Method Summary
 EditPart getSourceEditPart()
          Returns the source EditPart.
 Command getStartCommand()
          Returns the Command.
 EditPart getTargetEditPart()
           
 void setSourceEditPart(EditPart part)
          Sets the source of the Connection to the given EditPart.
 void setStartCommand(Command c)
          Sets the Command to be executed.
 void setTargetEditPart(EditPart part)
           
 
Methods inherited from class org.eclipse.gef.requests.CreateRequest
getFactory, getLocation, getNewObject, getNewObjectType, getSize, setFactory, setLocation, setSize
 
Methods inherited from class org.eclipse.gef.Request
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateConnectionRequest

public CreateConnectionRequest()
Method Detail

getSourceEditPart

public EditPart getSourceEditPart()
Returns the source EditPart.

Returns:
The source EditPart.

getTargetEditPart

public EditPart getTargetEditPart()

getStartCommand

public Command getStartCommand()
Returns the Command.

Returns:
The Command.

setSourceEditPart

public void setSourceEditPart(EditPart part)
Sets the source of the Connection to the given EditPart.

Parameters:
part - The source EditPart.

setTargetEditPart

public void setTargetEditPart(EditPart part)
Specified by:
setTargetEditPart in interface TargetRequest

setStartCommand

public void setStartCommand(Command c)
Sets the Command to be executed.

Parameters:
c - The Command.

Eclipse GEF
2.1

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