-
Notifications
You must be signed in to change notification settings - Fork 14
ExtensionPoint
With the 1.1.0 release two extension points are introduced to register your own model to text transformation and provide a launch configuration for it.
This way it is possible to add your own acceleo transformation to the generation process.
The de.urszeidler.eclipse.solidity.um2solidity.m2t extension point let you register an acceleo generator to be a part of the uml2solidity generation process.
Configuration Markup:
<!ELEMENT extension (acceleo_generator)*>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT acceleo_generator EMPTY>
<!ATTLIST acceleo_generator
generator_id CDATA #REQUIRED
generator_name CDATA #REQUIRED
generator_description CDATA #IMPLIED
generator_target CDATA #REQUIRED
generator_class CDATA #REQUIRED
estimated_work CDATA #IMPLIED>
- generator_id - The generator_id is used identify the generator also it is the constance for the preferences for checking if the generator is used in the running generation process.
- generator_name - The name of the transformation.
- generator_description - A small description.
- generator_target - The generation_target is used to get the preference for the target folder where the generated files should be stored.
- generator_class - The class of the acceleo generator which provides the model to text transformation.
- estimated_work - An optional integer to indicate the work which is needed for the generator, it is used for the progress monitor. The default value is 10.
The de.urszeidler.eclipse.solidity.um2solidity.m2t.laucherTab let you register a launch configuration used to configure the model to text transformation.
Configuration Markup:
<!ELEMENT extension (uml2solidityLauchTab*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT uml2solidityLauchTab EMPTY>
<!ATTLIST uml2solidityLauchTab
id CDATA #REQUIRED
tab_class CDATA #REQUIRED
tab_order CDATA #IMPLIED>
This extension point adds launcher tabs to the uml2solidity laucher configuration. There are used to controll the generation process and provide the parameters for a transformation.
- id -
- tab_class - The tab must extends the AbstractUml2SolidityLaunchConfigurationTab the tab must provide at least a boolean field to en/disable the generation and the tab configuration name must correspond to the id of the registered accele_generator.
- tab_order - The position the tab should be placed, when left out 10 is used. Choose a number higher as 10 as the first are reserved.