Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.emf.type.core.requests
Class DestroyReferenceRequest

java.lang.Object
  extended by 

org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest
      extended by 

org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest
          extended by 
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.


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

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.
Method Detail

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

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire