|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest
org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest
org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest
public class CreateRelationshipRequest
Request to create a new relationship element.
Field Summary | |
---|---|
static java.lang.String |
SOURCE
The parameter name for the relationship source. |
static java.lang.String |
TARGET
The parameter name for the relationship target. |
Fields inherited from interface org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest |
---|
REPLACE_DEFAULT_COMMAND |
Constructor Summary | |
---|---|
CreateRelationshipRequest(org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
IElementType elementType)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
IElementType elementType,
org.eclipse.emf.ecore.EReference containmentFeature)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
IElementType elementType)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(IElementType elementType)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
IElementType elementType)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
IElementType elementType,
org.eclipse.emf.ecore.EReference containmentFeature)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
org.eclipse.emf.ecore.EObject source,
org.eclipse.emf.ecore.EObject target,
IElementType elementType)
Constructs a new request to create a new relationship. |
|
CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
IElementType elementType)
Constructs a new request to create a new relationship. |
Method Summary | |
---|---|
org.eclipse.emf.ecore.EObject |
getContainer()
Gets the container for the new element. |
org.eclipse.emf.ecore.EObject |
getSource()
Gets the source of the new relationship. |
org.eclipse.emf.ecore.EObject |
getTarget()
Gets the target of the new relationship. |
boolean |
isPrompt()
Gets the value of the prompt flag. |
void |
setPrompt(boolean prompt)
Sets the value of the prompt flag. |
void |
setSource(org.eclipse.emf.ecore.EObject source)
Sets the relationship source. |
void |
setTarget(org.eclipse.emf.ecore.EObject target)
Sets the relationship target. |
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest |
---|
createContainer, getClientContext, getContainmentFeature, getDefaultLabel, getEditHelperContext, getEditingDomain, getElementsToEdit, getElementType, getNewElement, initializeContainmentFeature, invalidateContainmentFeature, invalidateEditHelperContext, setClientContext, setContainer, setContainmentFeature, setNewElement, setParameter |
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest |
---|
addParameters, getLabel, getParameter, getParameters, setEditingDomain, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SOURCE
public static final java.lang.String TARGET
Constructor Detail |
---|
public CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, IElementType elementType, org.eclipse.emf.ecore.EReference containmentFeature)
editingDomain
- the editing domain in which I am requesting to make modelcontainer
- the container for the new relationshipsource
- the source of the new relationshiptarget
- the target of the new relationshipelementType
- the element type of the new relationshipcontainmentFeature
- the feature that will contain the new relationshippublic CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, IElementType elementType)
editingDomain
- the editing domain in which I am requesting to make modelcontainer
- the container for the new relationshipsource
- the source of the new relationshiptarget
- the target of the new relationshipelementType
- the element type of the new relationshippublic CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, IElementType elementType)
editingDomain
- the editing domain in which I am requesting to make modelsource
- the source of the new relationshiptarget
- the target of the new relationshipelementType
- the element type of the new relationshippublic CreateRelationshipRequest(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, IElementType elementType)
getContainer()
.
source
- the source of the new relationshiptarget
- the target of the new relationshipelementType
- the element type of the new relationshippublic CreateRelationshipRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, IElementType elementType)
editingDomain
- the editing domain in which I am requesting to make modelelementType
- the element type of the new relationshippublic CreateRelationshipRequest(IElementType elementType)
getContainer()
.
elementType
- the element type of the new relationshippublic CreateRelationshipRequest(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, IElementType elementType, org.eclipse.emf.ecore.EReference containmentFeature)
container
.
container
- the container for the new relationshipsource
- the source of the new relationshiptarget
- the target of the new relationshipelementType
- the element type of the new relationshipcontainmentFeature
- the feature that will contain the new relationshippublic CreateRelationshipRequest(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EObject target, IElementType elementType)
container
.
container
- the container for the new relationshipsource
- the source of the new relationshiptarget
- the target of the new relationshipelementType
- the element type of the new relationshipMethod Detail |
---|
public org.eclipse.emf.ecore.EObject getSource()
public void setSource(org.eclipse.emf.ecore.EObject source)
Does nothing of the source has not changed. Othewise, invalidates the edit helper context and containment feature.
source
- the relationship sourcepublic org.eclipse.emf.ecore.EObject getTarget()
public void setTarget(org.eclipse.emf.ecore.EObject target)
Does nothing of the target has not changed. Otherwise, invalidates the edit helper context.
target
- the relationship targetpublic org.eclipse.emf.ecore.EObject getContainer()
getContainer
in class CreateElementRequest
public boolean isPrompt()
true
if the user should be prompted to create any
parts necessary to the creation of the new relationship,
false
if defaults should be used.public void setPrompt(boolean prompt)
prompt
- true
if the user should be prompted to create
any parts necessary to the creation of the new relationship,
false
if defaults should be used.
|
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.