|
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.SetRequest
public class SetRequest
Request to set the value of a structural feature in a model element.
Field Summary |
---|
Fields inherited from interface org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest |
---|
REPLACE_DEFAULT_COMMAND |
Constructor Summary | |
---|---|
SetRequest(org.eclipse.emf.ecore.EObject elementToEdit,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.Object value)
Constructs a new request to set the value of a structural feature in a model element. |
|
SetRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
org.eclipse.emf.ecore.EObject elementToEdit,
org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.Object value)
Constructs a new request to set the value of a structural feature in a model element. |
Method Summary | |
---|---|
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. |
org.eclipse.emf.ecore.EObject |
getElementToEdit()
Gets the owner of the structural feature. |
org.eclipse.emf.ecore.EStructuralFeature |
getFeature()
Gets the structural feature. |
java.lang.Object |
getValue()
Gets the new value. |
Methods inherited from class org.eclipse.gmf.runtime.emf.type.core.requests.AbstractEditCommandRequest |
---|
addParameters, getClientContext, getDefaultLabel, 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 SetRequest(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, org.eclipse.emf.ecore.EObject elementToEdit, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)
editingDomain
- the editing domain in which I am requesting to make modelelementToEdit
- the owner of the structural featurefeature
- the structural feature whose value is to be setvalue
- the new valuepublic SetRequest(org.eclipse.emf.ecore.EObject elementToEdit, org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object value)
elementToEdit
.
elementToEdit
- the owner of the structural featurefeature
- the structural feature whose value is to be setvalue
- the new valueMethod Detail |
---|
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
public java.lang.Object getValue()
public org.eclipse.emf.ecore.EObject getElementToEdit()
public java.util.List getElementsToEdit()
IEditCommandRequest
getElementsToEdit
in interface IEditCommandRequest
getElementsToEdit
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.