|
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(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. |
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(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(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 context
public 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 context| Method Detail |
|---|
public IClientContext getClientContext()
IEditHelperContext
getClientContext in interface IEditHelperContextpublic void setClientContext(IClientContext clientContext)
clientContext - the client contextpublic EObject getEObject()
IEditHelperContextEObject that is the subject of the editing
action.
getEObject in interface IEditHelperContextpublic void setEObject(EObject eObject)
EObject that is the subject of the editing
gesture.
eObject - the eObjectpublic IElementType getElementType()
IEditHelperContextIElementType that is the subject of the editing
action.
getElementType in interface IEditHelperContextpublic 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.