org.eclipse.gmf.runtime.emf.type.core.requests
Class DestroyReferenceRequest
java.lang.Object
org.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
-
All Implemented Interfaces:
-
IEditCommandRequest
-
public class DestroyReferenceRequest
- extends
DestroyRequest
Request to destroy a reference from one model element to another.
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 java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
DestroyReferenceRequest
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)
- Constructs a new request to destroy a reference from one model element to
another.
-
Parameters:
-
editingDomain
- the editing domain in which I am requesting to make model -
container
- the element that contains the reference -
containingFeature
- the feature in container
that contains the
reference -
referencedObject
- the referenced object -
confirmationRequired
- true
if the user should be prompted to confirm
the element deletion, false
otherwise.
DestroyReferenceRequest
public 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. The editing domain is derived from the
container
.
-
Parameters:
-
container
- the element that contains the reference -
containingFeature
- the feature in container
that contains the
reference -
referencedObject
- the referenced object -
confirmationRequired
- true
if the user should be prompted to confirm
the element deletion, false
otherwise.
getContainer
public org.eclipse.emf.ecore.EObject getContainer()
-
Description copied from class:
DestroyRequest
- Gets the container of the element to be destroyed.
-
-
Specified by:
-
getContainer
in class
DestroyRequest
-
-
Returns:
- the container of the element to be destroyed
setContainer
public void setContainer(org.eclipse.emf.ecore.EObject container)
- Sets the element that contains the reference.
-
-
Parameters:
-
container
- the element that contains the reference
getContainingFeature
public org.eclipse.emf.ecore.EReference getContainingFeature()
- Gets the feature in the
container
that contains the
reference.
-
-
Returns:
- the feature in the
container
that contains the
reference
setContainingFeature
public void setContainingFeature(org.eclipse.emf.ecore.EReference containingFeature)
- Sets the feature in the
container
that contains the
reference.
-
-
Parameters:
-
containingFeature
- the feature in the container
that contains the
reference
getReferencedObject
public org.eclipse.emf.ecore.EObject getReferencedObject()
- Gets the referenced element.
-
-
Returns:
- the referenced element
setReferencedObject
public void setReferencedObject(org.eclipse.emf.ecore.EObject referencedObject)
- Sets the referenced element.
-
-
Parameters:
-
referencedObject
- the referenced element
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.