Java Reference
In-Depth Information
ref —References the ID of an ElementType to bind the client context to.
You cannot use this attribute in conjunction with the pattern attribute.
pattern —The pattern of ElementType IDs to be bound. Patterns are reg-
ular expressions that match unique identifiers. See the Java documentation for
java.util.regex.Pattern for further details. You cannot use this attribute
in conjunction with the ref attribute.
<!ELEMENT advice EMPTY>
<!ATTLIST advice
ref CDATA #IMPLIED
pattern CDATA #IMPLIED>
This element defines an advice or a pattern of advice IDs in a client context
<binding> .
ref —References the ID of an advice to bind the client context to. You can-
not use this attribute in conjunction with the pattern attribute.
pattern —The pattern of advice IDs to be bound. Patterns are regular
expressions that match unique identifiers. See the Java documentation for
java.util.regex.Pattern for further details. You cannot use this attribute
in conjunction with the ref attribute.
Examples:
Consider this example of a context that includes only EObject s from the
logic example's editing domain:
<extension-point="org.eclipse.gmf.runtime.emf.type.core.
elementTypeBindings">
<clientContext
id="org.eclipse.gmf.examples.runtime.diagram.logic">
<enablement>
<test
property="org.eclipse.gmf.runtime.emf.core.editingDomain"
value="org.eclipse.gmf.examples.runtime.diagram.
logicEditingDomain"/>
</enablement>
</clientContext>
</extension>
This is an example of binding a single advice to the logic context:
<extension-point="org.eclipse.gmf.runtime.emf.type.core.
elementTypeBindings">
<binding
context="org.eclipse.gmf.examples.runtime.diagram.logic"/>
<advice ref="org.eclipse.gmf.runtime.diagram.core.advice.
Search WWH ::




Custom Search