|
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
public abstract class DestroyRequest
Abstract superclass for reuqests to destroy a model element.
Field Summary |
---|
Fields inherited from interface org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest |
---|
REPLACE_DEFAULT_COMMAND |
Constructor Summary | |
---|---|
DestroyRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
boolean confirmationRequired)
Constructs a new request to destroy a model element. |
Method Summary | |
---|---|
abstract org.eclipse.emf.ecore.EObject |
getContainer()
Gets the container of the element to be destroyed. |
protected java.lang.String |
getDefaultLabel()
Gets the default edit command label. |
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. |
boolean |
isConfirmationRequired()
Answers whether or not the user should be prompted to confirm the element deletion. |
void |
setConfirm(boolean confirmationRequired)
Sets the flag that indicates whether or not confirmation of the deletion is required. |
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 DestroyRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, boolean confirmationRequired)
editingDomain
- the editing domain in which I am requesting to make modelconfirmationRequired
- true
if the user should be prompted to confirm
the element deletion, false
otherwise.Method Detail |
---|
public boolean isConfirmationRequired()
true
if the user should be prompted to confirm the
element deletion, false
otherwisepublic void setConfirm(boolean confirmationRequired)
confirmationRequired
- true
if the user should be prompted to confirm
the element deletion, false
otherwisepublic abstract org.eclipse.emf.ecore.EObject getContainer()
public java.util.List getElementsToEdit()
IEditCommandRequest
getElementsToEdit
in interface IEditCommandRequest
getElementsToEdit
in class AbstractEditCommandRequest
protected java.lang.String getDefaultLabel()
AbstractEditCommandRequest
getDefaultLabel
in class AbstractEditCommandRequest
public java.lang.Object getEditHelperContext()
IEditCommandRequest
IElementType
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.