Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.requests
Class CreateConnectionRequest

java.lang.Object
  extended by

org.eclipse.gef.Request
      extended by

org.eclipse.gef.requests.CreateRequest
          extended by
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 EditPart that the source end of the connection should be connected to.
  Command getStartCommand ()
          Returns the start command.
  EditPart getTargetEditPart ()
          Returns the EditPart that the target end of the connection should be connected to.
 void setSourceEditPart ( EditPart part)
          Sets the source of the Connection to the given EditPart.
 void setStartCommand ( Command c)
          Sets the start command.
 void setTargetEditPart ( EditPart part)
          Sets the target of the Connection to the given EditPart.
 
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
getExtendedData, getType, setExtendedData, 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 EditPart that the source end of the connection should be connected to.

Returns:
the source EditPart

getTargetEditPart

public 
EditPart getTargetEditPart()
Returns the EditPart that the target end of the connection should be connected to.

Returns:
the target EditPart

getStartCommand

public 
Command getStartCommand()
Returns the start command. This command is only used to pass on information to the target EditPart so it can create the final 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)
Sets the target of the Connection to the given EditPart.

Specified by:
setTargetEditPart in interface TargetRequest
Parameters:
part - the target EditPart

setStartCommand

public void setStartCommand(
Command c)
Sets the start command. This command is only used to pass on information to the target EditPart so it can create the final command.

Parameters:
c - the command

Eclipse GEF
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire