Java Reference
In-Depth Information
You can create custom elementTypes by declaring an IElementType
Factory that is responsible for creating all elementTypes declaring the same
“kind” as the factory. Custom parameters can be associated with
elementTypes created this way.
Configuration markup:
<!ELEMENT extension (metamodel* , elementTypeFactory* ,
specializationType*)>
<!ELEMENT metamodel (metamodelType* , specializationType* ,
adviceBinding*)>
<!ATTLIST metamodel
nsURI CDATA #REQUIRED>
This element identifies the metamodel for which a set of elementTypes and
advice bindings are defined. All eClass and eContainmentFeature values specified
in the types must be found within this metamodel.
nsURI —The namespace URI of the metamodel.
<!ELEMENT elementTypeFactory EMPTY>
<!ATTLIST elementTypeFactory
factory CDATA #REQUIRED
kind CDATA #REQUIRED
params CDATA #IMPLIED>
This element contributes a factory that will create elementTypes declar-
ing the same “ kind ” as the factory. Custom parameters can be associated with
elementTypes created this way.
factory —The fully qualified name of a class that implements the org.
eclipse.gmf.runtime.emf.type.core.IElementTypeFactory .
kind —String identifying the kind of element that this factory will create.
elementTypes will declare the same “ kind ” String if they want to be created
by this factory.
params —Comma-separated list of custom parameters that this
elementType factory supports. Parameter values are read from the element
Type element and passed to the factory when they are created.
<!ELEMENT metamodelType (param*)>
<!ATTLIST metamodelType
id CDATA #REQUIRED
icon CDATA #IMPLIED
name CDATA #IMPLIED
Search WWH ::




Custom Search