|
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.EditHelperContext
public class EditHelperContext
The concrete implementation of the context of an editing gesture. It
represents the EObject
or IElementType
that is
the subject of the editing action, and the IClientContext
in
which the editing will be performed.
This class may be instantiated by clients.
Constructor Summary | |
---|---|
EditHelperContext()
Constructs a new context object. |
|
EditHelperContext(org.eclipse.emf.ecore.EObject eObject,
IClientContext clientContext)
Constructs a new context with an eObject and a
clientContext which describe the context in which an
editing gesture will be made. |
|
EditHelperContext(IElementType elementType,
IClientContext clientContext)
Constructs a new context with an elementType and a
clientContext which describe the context in which an
editing gesture will be made. |
Method Summary | |
---|---|
IClientContext |
getClientContext()
Gets the client context in which the editing gesture will be performed. |
IElementType |
getElementType()
Gets the IElementType that is the subject of the editing
action. |
org.eclipse.emf.ecore.EObject |
getEObject()
Gets the EObject that is the subject of the editing
action. |
void |
setClientContext(IClientContext clientContext)
Sets the client context in which the editing gesture will be performed. |
void |
setElementType(IElementType elementType)
Sets the EObject that is the subject of the editing
gesture. |
void |
setEObject(org.eclipse.emf.ecore.EObject eObject)
Sets the EObject that is the subject of the editing
gesture. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditHelperContext()
public EditHelperContext(org.eclipse.emf.ecore.EObject eObject, IClientContext clientContext)
eObject
and a
clientContext
which describe the context in which an
editing gesture will be made.
eObject
- the EObject
that is the subject of the editing
gestureclientContext
- the client contextpublic EditHelperContext(IElementType elementType, IClientContext clientContext)
elementType
and a
clientContext
which describe the context in which an
editing gesture will be made.
elementType
- the IElementType
that is the subject of the
editing gestureclientContext
- the client contextMethod Detail |
---|
public IClientContext getClientContext()
IEditHelperContext
getClientContext
in interface IEditHelperContext
public void setClientContext(IClientContext clientContext)
clientContext
- the client contextpublic org.eclipse.emf.ecore.EObject getEObject()
IEditHelperContext
EObject
that is the subject of the editing
action.
getEObject
in interface IEditHelperContext
public void setEObject(org.eclipse.emf.ecore.EObject eObject)
EObject
that is the subject of the editing
gesture.
eObject
- the eObjectpublic IElementType getElementType()
IEditHelperContext
IElementType
that is the subject of the editing
action.
getElementType
in interface IEditHelperContext
public void setElementType(IElementType elementType)
EObject
that is the subject of the editing
gesture.
elementType
- the element type
|
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.