|
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(org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EReference containingFeature,
org.eclipse.emf.ecore.EObject referencedObject,
boolean confirmationRequired)
Constructs a new request to destroy a reference from one model element to another. |
|
DestroyReferenceRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
org.eclipse.emf.ecore.EObject container,
org.eclipse.emf.ecore.EReference containingFeature,
org.eclipse.emf.ecore.EObject referencedObject,
boolean confirmationRequired)
Constructs a new request to destroy a reference from one model element to another. |
Method Summary | |
---|---|
org.eclipse.emf.ecore.EObject |
getContainer()
Gets the container of the element to be destroyed. |
org.eclipse.emf.ecore.EReference |
getContainingFeature()
Gets the feature in the container that contains the
reference. |
org.eclipse.emf.ecore.EObject |
getReferencedObject()
Gets the referenced element. |
void |
setContainer(org.eclipse.emf.ecore.EObject container)
Sets the element that contains the reference. |
void |
setContainingFeature(org.eclipse.emf.ecore.EReference containingFeature)
Sets the feature in the container that contains the
reference. |
void |
setReferencedObject(org.eclipse.emf.ecore.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(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EReference containingFeature, org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EReference containingFeature, org.eclipse.emf.ecore.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 org.eclipse.emf.ecore.EObject getContainer()
DestroyRequest
getContainer
in class DestroyRequest
public void setContainer(org.eclipse.emf.ecore.EObject container)
container
- the element that contains the referencepublic org.eclipse.emf.ecore.EReference getContainingFeature()
container
that contains the
reference.
container
that contains the
referencepublic void setContainingFeature(org.eclipse.emf.ecore.EReference containingFeature)
container
that contains the
reference.
containingFeature
- the feature in the container
that contains the
referencepublic org.eclipse.emf.ecore.EObject getReferencedObject()
public void setReferencedObject(org.eclipse.emf.ecore.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.