|
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.ClientContext
public class ClientContext
The implementation of the client context interface.
This class may be instantiated or subclassed by clients.
| Constructor Summary | |
|---|---|
ClientContext(java.lang.String id,
IElementMatcher matcher)
Initializes me with my ID and my element matcher. |
|
| Method Summary | |
|---|---|
void |
bindId(java.lang.String typeId)
Binds a specific element type or advice to me. |
void |
bindPattern(java.util.regex.Pattern pattern)
Binds a pattern of element types and advice to me. |
boolean |
equals(java.lang.Object obj)
The context ID fully determines equality. |
java.util.Collection |
getChildren()
Has no children. |
java.lang.String |
getId()
Returns the context ID defined by the client if this is not a multi-context. |
IElementMatcher |
getMatcher()
Obtains the element matcher that determines the elements belong to me. |
int |
hashCode()
The context ID fully determines equality. |
boolean |
includes(org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor adviceDescriptor)
Queries whether I am bound to the specified adviceDescriptor. |
boolean |
includes(IElementType elementType)
Queries whether I am bound to the specified elementType. |
boolean |
includes(IElementTypeDescriptor elementTypeDescriptor)
Queries whether I am bound to the specified elementTypeDescriptor. |
boolean |
isMultiClientContext()
Not a multi-context. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientContext(java.lang.String id,
IElementMatcher matcher)
id - my unique identifiermatcher - my element matcher| Method Detail |
|---|
public final java.lang.String getId()
IClientContext
getId in interface IClientContextpublic final IElementMatcher getMatcher()
IClientContext
getMatcher in interface IClientContextpublic boolean includes(org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor adviceDescriptor)
IClientContextadviceDescriptor.
includes in interface IClientContexttrue if I am bound to the a;
false, otherwisepublic boolean includes(IElementTypeDescriptor elementTypeDescriptor)
IClientContextelementTypeDescriptor.
includes in interface IClientContextelementTypeDescriptor - an element type descriptor
true if I am bound to the
elementTypeDescriptor; false,
otherwisepublic boolean includes(IElementType elementType)
IClientContextelementType.
includes in interface IClientContextelementType - an element type
true if I am bound to the elementType;
false, otherwisepublic void bindId(java.lang.String typeId)
IClientContext
bindId in interface IClientContexttypeId - the ID of a element type or advice that is to be bound to mepublic void bindPattern(java.util.regex.Pattern pattern)
IClientContext
bindPattern in interface IClientContextpattern - the pattern of element type and advice IDs that are bound to
mepublic java.util.Collection getChildren()
getChildren in interface IClientContextpublic boolean isMultiClientContext()
isMultiClientContext in interface IClientContexttrue for a multi-context, false
otherwisepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
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.