|
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 matcherMethod Detail |
---|
public final java.lang.String getId()
IClientContext
getId
in interface IClientContext
public final IElementMatcher getMatcher()
IClientContext
getMatcher
in interface IClientContext
public boolean includes(org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor adviceDescriptor)
IClientContext
adviceDescriptor
.
includes
in interface IClientContext
true
if I am bound to the a
;
false
, otherwisepublic boolean includes(IElementTypeDescriptor elementTypeDescriptor)
IClientContext
elementTypeDescriptor
.
includes
in interface IClientContext
elementTypeDescriptor
- an element type descriptor
true
if I am bound to the
elementTypeDescriptor
; false
,
otherwisepublic boolean includes(IElementType elementType)
IClientContext
elementType
.
includes
in interface IClientContext
elementType
- an element type
true
if I am bound to the elementType
;
false
, otherwisepublic void bindId(java.lang.String typeId)
IClientContext
bindId
in interface IClientContext
typeId
- 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 IClientContext
pattern
- the pattern of element type and advice IDs that are bound to
mepublic java.util.Collection getChildren()
getChildren
in interface IClientContext
public boolean isMultiClientContext()
isMultiClientContext
in interface IClientContext
true
for a multi-context, false
otherwisepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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.