|
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.ReorientRequest
org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest
public class ReorientReferenceRelationshipRequest
Request to change the source or target of a reference.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest |
|---|
REORIENT_SOURCE, REORIENT_TARGET |
| Fields inherited from interface org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest |
|---|
REPLACE_DEFAULT_COMMAND |
| Constructor Summary | |
|---|---|
ReorientReferenceRelationshipRequest(EObject referenceOwner,
EObject newRelationshipEnd,
EObject oldRelationshipEnd,
int direction)
Constructs a new request to change the source or target of a reference. |
|
ReorientReferenceRelationshipRequest(TransactionalEditingDomain editingDomain,
EObject referenceOwner,
EObject newRelationshipEnd,
EObject oldRelationshipEnd,
int direction)
Constructs a new request to change the source or target of a reference. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getEditHelperContext()
Gets the edit helper context for this request. |
java.util.List |
getElementsToEdit()
Gets the elements that will be changed when the work is done for this request. |
EObject |
getReferenceOwner()
Get the owner of the reference. |
| Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest |
|---|
getDefaultLabel, getDirection, getNewRelationshipEnd, getOldRelationshipEnd |
| Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest |
|---|
addParameters, getClientContext, getEditingDomain, getLabel, getParameter, getParameters, setClientContext, setEditingDomain, setLabel, setParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReorientReferenceRelationshipRequest(TransactionalEditingDomain editingDomain,
EObject referenceOwner,
EObject newRelationshipEnd,
EObject oldRelationshipEnd,
int direction)
editingDomain - the editing domain in which I am requesting to make modelreferenceOwner - the owner of the referencenewRelationshipEnd - the new source or targetoldRelationshipEnd - the old source or targetdirection - Indicates whether or not the source of the target of the
relationship will be changed. One of ReorientRequest.REORIENT_SOURCE
or ReorientRequest.REORIENT_TARGET.
public ReorientReferenceRelationshipRequest(EObject referenceOwner,
EObject newRelationshipEnd,
EObject oldRelationshipEnd,
int direction)
referenceOwner.
referenceOwner - the owner of the referencenewRelationshipEnd - the new source or targetoldRelationshipEnd - the old source or targetdirection - Indicates whether or not the source of the target of the
relationship will be changed. One of ReorientRequest.REORIENT_SOURCE
or ReorientRequest.REORIENT_TARGET.| Method Detail |
|---|
public EObject getReferenceOwner()
public java.util.List getElementsToEdit()
IEditCommandRequest
getElementsToEdit in interface IEditCommandRequestgetElementsToEdit in class AbstractEditCommandRequestpublic java.lang.Object getEditHelperContext()
IEditCommandRequestIElementType or an EObject, or an
IEditHelperContext. It determines which edit helper should be
used to find a command to do the work in the request.
|
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.