Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "SCA/Components/SCA CompositeDesignerExtension"
< SCA
(New page: IN PROGRESS == Extend the SCA Composite Designer == * Create a new plugin-in * Extend the required extension points == Extension points provided == == Example == <source lang="xml"> <...) |
(→Extension points provided) |
||
Line 5: | Line 5: | ||
* Extend the required extension points | * Extend the required extension points | ||
− | == Extension points | + | == Extension points == |
− | + | ||
− | + | ||
== Example == | == Example == |
Revision as of 12:18, 25 March 2009
IN PROGRESS
Extend the SCA Composite Designer
- Create a new plugin-in
- Extend the required extension points
Extension points
Example
<?xml version="1.0" encoding="UTF-8"?> <plugin> <extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes"> <metamodel nsURI="http://frascati.ow2.org"> <metamodelType id="org.eclipse.stp.sca.diagram.frascati.FractalImplementation" name="FractalImplementation" eclass="FractalImplementation" kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"> <param name="semanticHint" value="org.eclipse.stp.sca.diagram.frascati.FractalImplementation"/> </metamodelType> <metamodelType id="org.eclipse.stp.sca.diagram.frascati.JBIBinding" name="JBIBinding" eclass="JBIBinding" kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"> <param name="semanticHint" value="org.eclipse.stp.sca.diagram.frascati.JBIBinding"/> </metamodelType> </metamodel> </extension> <extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings"> <clientContext id="ScaClientContext"> <enablement> <test property="org.eclipse.gmf.runtime.emf.core.editingDomain" value="org.eclipse.stp.sca.diagram.EditingDomain"/> </enablement> </clientContext> <binding context="ScaClientContext"> <elementType ref="org.eclipse.stp.sca.diagram.frascati.FractalImplementation"/> <advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/> </binding> <binding context="ScaClientContext"> <elementType ref="org.eclipse.stp.sca.diagram.frascati.JBIBinding"/> <advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/> </binding> </extension> <extension point="org.eclipse.stp.sca.diagram.extension.implementations"> <element typeId="org.eclipse.stp.sca.diagram.frascati.FractalImplementation" literalClass="org.eclipse.stp.sca.domainmodel.frascati.FrascatiPackage$Literals" literalField="DOCUMENT_ROOT__IMPLEMENTATION_FRACTAL" iconPath="/org.eclipse.stp.sca.domainmodel.frascati.edit/icons/full/obj16/FractalImplementation.gif"/> </extension> <extension point="org.eclipse.stp.sca.diagram.extension.bindings"> <element typeId="org.eclipse.stp.sca.diagram.frascati.JBIBinding" literalClass="org.eclipse.stp.sca.domainmodel.frascati.FrascatiPackage$Literals" literalField="DOCUMENT_ROOT__BINDING_JBI" iconPath="/org.eclipse.stp.sca.domainmodel.frascati.edit/icons/full/obj16/JBIBinding.gif"/> </extension> <extension point="org.eclipse.stp.sca.diagram.AdaptorFactories"> <adaptorFactory class="org.eclipse.stp.sca.domainmodel.frascati.provider.FrascatiItemProviderAdapterFactory"/> </extension> <!-- Palette Provider --> <extension point="org.eclipse.stp.sca.diagram.ImplementationEntryPalette"> <implementationEntry description="Create a new FractalImplementation" iconPath="/org.eclipse.stp.sca.domainmodel.frascati.edit/icons/full/obj16/FractalImplementation.gif" label="Fractal (Frascati 0.4)" type="org.eclipse.stp.sca.diagram.frascati.FractalImplementation"> </implementationEntry> </extension> <extension point="org.eclipse.stp.sca.diagram.BindingEntryPalette"> <bindingEntry description="Create a new JBIBinding" iconPath="/org.eclipse.stp.sca.domainmodel.frascati.edit/icons/full/obj16/JBIBinding.gif" label="JBI (Frascati 0.4)" type="org.eclipse.stp.sca.diagram.frascati.JBIBinding"> </bindingEntry> </extension> </plugin>