|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClientContext
Interface of an object that defines a context to which clients of the element type registry may bind element types and advice. This effectively selects the types and advice that are applicable to the model defined by a client.
This interface is not intended to be implemented outside of the element type framework.
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. |
java.util.Collection |
getChildren()
Returns a list of IClientContext s contained in this
multi-context, or an empty list if this is not a multi-context. |
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. |
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()
Returns whether this context is a multi-context, which is a compound context representing a group of client contexts. |
Method Detail |
---|
java.lang.String getId()
boolean isMultiClientContext()
true
for a multi-context, false
otherwisejava.util.Collection getChildren()
IClientContext
s contained in this
multi-context, or an empty list if this is not a multi-context.
IElementMatcher getMatcher()
void bindId(java.lang.String typeId)
typeId
- the ID of a element type or advice that is to be bound to mevoid bindPattern(java.util.regex.Pattern pattern)
pattern
- the pattern of element type and advice IDs that are bound to
meboolean includes(IElementTypeDescriptor elementTypeDescriptor)
elementTypeDescriptor
.
elementTypeDescriptor
- an element type descriptor
true
if I am bound to the
elementTypeDescriptor
; false
,
otherwiseboolean includes(IElementType elementType)
elementType
.
elementType
- an element type
true
if I am bound to the elementType
;
false
, otherwiseboolean includes(org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor adviceDescriptor)
adviceDescriptor
.
advice
- an edit helper advice descriptor
true
if I am bound to the a
;
false
, otherwise
|
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.