Closed UrsZeidler closed 9 years ago
The extension point is used by the default export dialog,
Identifier: de.urszeidler.shr5.m2t.de.urszeidler.shr5.m2t Since: 0.2.9 Description: A register point for acceleo based model to text transformations. Configuration Markup:
<!ELEMENT extension (Transformer)*>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT Transformer (TransformerMapping)+>
<!ATTLIST Transformer
acceleoGenerator CDATA #REQUIRED
name CDATA #REQUIRED
description CDATA #IMPLIED
dialogImage CDATA #IMPLIED>
Defines an acceleo generator which transform a given model object to a file.
dialogImage - An image 48x48 for the dialog.
<!ELEMENT TransformerMapping EMPTY>
<!ATTLIST TransformerMapping
class CDATA #IMPLIED>
All classes which the generator can make use of.
Examples: See de.urszeidler.shr5.acceleo.
<Transformer
acceleoGenerator="de.urszeidler.shr5.acceleo.sheets.BoardCharacterSheet"
description="%Transformer.bbcharactersheet.description"
dialogImage="images/textTransformations.png"
name="%Transformer.bbcharactersheet.name">
<TransformerMapping
class="de.urszeidler.eclipse.shr5Management.NonPlayerCharacter"></TransformerMapping>
<TransformerMapping
class="de.urszeidler.eclipse.shr5Management.PlayerCharacter">
</TransformerMapping>
<TransformerMapping
class="de.urszeidler.eclipse.shr5Management.CharacterGroup">
</TransformerMapping>
</Transformer>
We need to provide an extension point for the model to text engine. The extension point need to define:
The current acceleo plugin will use these extension point. So we can change inverse the dependency which is currentl bad design.
Other people could provide new model to text transformations.