|
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.DuplicateElementsRequest
public class DuplicateElementsRequest
Request to duplicate a model element.
Field Summary |
---|
Fields inherited from interface org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest |
---|
REPLACE_DEFAULT_COMMAND |
Constructor Summary | |
---|---|
DuplicateElementsRequest()
Constructs a new request to duplicate a model element. |
|
DuplicateElementsRequest(java.util.List elementsToDuplicate)
Constructs a new request to duplicate a model element. |
|
DuplicateElementsRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Constructs a new request to duplicate a model element. |
|
DuplicateElementsRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
java.util.List elementsToDuplicate)
Constructs a new request to duplicate a model element. |
Method Summary | |
---|---|
java.util.Map |
getAllDuplicatedElementsMap()
Returns a map of all duplicated elements. |
protected java.lang.String |
getDefaultLabel()
Gets the default edit command label. |
org.eclipse.emf.ecore.EObject |
getDuplicate()
Gets the duplicate. |
java.lang.Object |
getEditHelperContext()
Gets the edit helper context for this request. |
org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
Derives the editing domain from the elements to be duplicated, if it hasn't already been specified. |
java.util.List |
getElementsToBeDuplicated()
Returns the primary elements to be duplicated. |
java.util.List |
getElementsToEdit()
Gets the elements that will be changed when the work is done for this request. |
void |
setAllDuplicatedElementsMap(java.util.Map duplicatedElementsMap)
Sets the duplicate. |
void |
setElementsToBeDuplicated(java.util.List elements)
Sets the primary elements to be duplicated. |
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest |
---|
addParameters, getClientContext, 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 DuplicateElementsRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
editingDomain
- the editing domain in which I am requesting to make modelpublic DuplicateElementsRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, java.util.List elementsToDuplicate)
editingDomain
- the editing domain in which I am requesting to make modelelementToDuplicate
- the element to be duplicatedpublic DuplicateElementsRequest()
getElementsToBeDuplicated()
.
public DuplicateElementsRequest(java.util.List elementsToDuplicate)
getElementsToBeDuplicated()
.
elementToDuplicate
- the element to be duplicatedMethod Detail |
---|
public java.util.Map getAllDuplicatedElementsMap()
public java.util.List getElementsToBeDuplicated()
public org.eclipse.emf.ecore.EObject getDuplicate()
null
until the request has
been answered.
public void setAllDuplicatedElementsMap(java.util.Map duplicatedElementsMap)
duplicate
- the duplicatepublic void setElementsToBeDuplicated(java.util.List elements)
elements
- The elements to be duplicated.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.
public org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
getEditingDomain
in interface IEditCommandRequest
getEditingDomain
in class AbstractEditCommandRequest
|
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.