|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.Request
org.eclipse.gef.requests.CreateRequest
org.eclipse.gef.requests.CreateConnectionRequest
org.eclipse.gmf.runtime.diagram.ui.requests.CreateUnspecifiedTypeConnectionRequest
This request encapsulates a list of
CreateConnectionViewAndElementRequest for each relationship
type that this tool supports. Each method in
CreateConnectionRequest that is called to configure the
request in ConnectionCreationTool is propagated to each
individual request.
| Constructor Summary | |
CreateUnspecifiedTypeConnectionRequest(java.util.List relationshipTypes,
boolean useModelingAssistantService,
PreferencesHint preferencesHint)
Creates a new CreateUnspecifiedTypeConnectionRequest. |
|
| Method Summary | |
void |
addRequest(IElementType relationshipType,
Request request)
|
java.util.List |
getAllRequests()
Returns a list of all the requests. |
java.util.List |
getElementTypes()
Returns the list of element types. |
protected PreferencesHint |
getPreferencesHint()
Gets the preferences hint that is to be used to find the appropriate preference store from which to retrieve diagram preference values. |
CreateRequest |
getRequestForType(IElementType relationshipType)
Returns the CreateRequest for the relationship type passed in. |
boolean |
isDirectionReversed()
Returns true if this request is to create a connection from target to source. |
void |
setDirectionReversed(boolean directionReversed)
Sets the directionReversed flag. |
void |
setLocation(Point location)
|
void |
setSourceEditPart(EditPart part)
|
void |
setTargetEditPart(EditPart part)
|
void |
setType(java.lang.Object type)
|
boolean |
useModelingAssistantService()
Should the Modeling Assistant Service be used? |
| Methods inherited from class org.eclipse.gef.requests.CreateConnectionRequest |
getSourceEditPart, getStartCommand, getTargetEditPart, setStartCommand |
| Methods inherited from class org.eclipse.gef.requests.CreateRequest |
getFactory, getLocation, getNewObject, getNewObjectType, getSize, setFactory, setSize |
| Methods inherited from class org.eclipse.gef.Request |
getExtendedData, getType, setExtendedData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CreateUnspecifiedTypeConnectionRequest(java.util.List relationshipTypes,
boolean useModelingAssistantService,
PreferencesHint preferencesHint)
CreateUnspecifiedTypeConnectionRequest.
relationshipTypes - List of relationship types of which one will be created (of
type IElementType).useModelingAssistantService - True if the Modeling Assistant Service should be used to find
the types when the other end of the connection is known.preferencesHint - The preference hint that is to be used to find the appropriate
preference store from which to retrieve diagram preference
values. The preference hint is mapped to a preference store in
the preference registry <@link DiagramPreferencesRegistry>.| Method Detail |
public CreateRequest getRequestForType(IElementType relationshipType)
CreateRequest for the relationship type passed in.
relationshipType -
CreateRequest
public void addRequest(IElementType relationshipType,
Request request)
public java.util.List getAllRequests()
public java.util.List getElementTypes()
public void setSourceEditPart(EditPart part)
CreateConnectionRequest.setSourceEditPart(org.eclipse.gef.EditPart)public void setTargetEditPart(EditPart part)
TargetRequest.setTargetEditPart(org.eclipse.gef.EditPart)public void setLocation(Point location)
CreateRequest.setLocation(org.eclipse.draw2d.geometry.Point)public void setType(java.lang.Object type)
Request.setType(java.lang.Object)public boolean isDirectionReversed()
public void setDirectionReversed(boolean directionReversed)
directionReversed - The directionReversed to set.public boolean useModelingAssistantService()
protected PreferencesHint getPreferencesHint()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.