|
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.DestroyRequest
org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest
public class DestroyReferenceRequest
Request to destroy a reference from one model element to another.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest |
|---|
REPLACE_DEFAULT_COMMAND |
| Constructor Summary | |
|---|---|
DestroyReferenceRequest(EObject container,
EReference containingFeature,
EObject referencedObject,
boolean confirmationRequired)
Constructs a new request to destroy a reference from one model element to another. |
|
DestroyReferenceRequest(TransactionalEditingDomain editingDomain,
EObject container,
EReference containingFeature,
EObject referencedObject,
boolean confirmationRequired)
Constructs a new request to destroy a reference from one model element to another. |
|
| Method Summary | |
|---|---|
EObject |
getContainer()
Gets the container of the element to be destroyed. |
EReference |
getContainingFeature()
Gets the feature in the container that contains the
reference. |
EObject |
getReferencedObject()
Gets the referenced element. |
void |
setContainer(EObject container)
Sets the element that contains the reference. |
void |
setContainingFeature(EReference containingFeature)
Sets the feature in the container that contains the
reference. |
void |
setReferencedObject(EObject referencedObject)
Sets the referenced element. |
| Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest |
|---|
getDefaultLabel, getEditHelperContext, getElementsToEdit, isConfirmationRequired, setConfirm |
| 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 DestroyReferenceRequest(TransactionalEditingDomain editingDomain,
EObject container,
EReference containingFeature,
EObject referencedObject,
boolean confirmationRequired)
editingDomain - the editing domain in which I am requesting to make modelcontainer - the element that contains the referencecontainingFeature - the feature in container that contains the
referencereferencedObject - the referenced objectconfirmationRequired - true if the user should be prompted to confirm
the element deletion, false otherwise.
public DestroyReferenceRequest(EObject container,
EReference containingFeature,
EObject referencedObject,
boolean confirmationRequired)
container.
container - the element that contains the referencecontainingFeature - the feature in container that contains the
referencereferencedObject - the referenced objectconfirmationRequired - true if the user should be prompted to confirm
the element deletion, false otherwise.| Method Detail |
|---|
public EObject getContainer()
DestroyRequest
getContainer in class DestroyRequestpublic void setContainer(EObject container)
container - the element that contains the referencepublic EReference getContainingFeature()
container that contains the
reference.
container that contains the
referencepublic void setContainingFeature(EReference containingFeature)
container that contains the
reference.
containingFeature - the feature in the container that contains the
referencepublic EObject getReferencedObject()
public void setReferencedObject(EObject referencedObject)
referencedObject - the referenced element
|
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.