how to read Eugenia diagram model in Acceleo? [message #1833174] |
Mon, 05 October 2020 10:36  |
Eclipse User |
|
|
|
Hi!
I want to read this diagram model in Acceleo
"<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:abcd="https://petrinetdsl"
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.3/notation" xmi:id="_qxqjYPENEeq3XO_vroMpcQ"
type="Petrinetdsl" name="default.petrinetdsl_diagram" measurementUnit="Pixel">
<children xmi:type="notation:Node" xmi:id="_s6AI4PENEeq3XO_vroMpcQ" type="2001">
<children xmi:type="notation:DecorationNode" xmi:id="_s6ClIPENEeq3XO_vroMpcQ" type="5001">
<layoutConstraint xmi:type="notation:Location" xmi:id="_s6ClIfENEeq3XO_vroMpcQ" y="5"/>
</children>.................... "
i have created the following Acceleo project
[module generate('http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/gmf/runtime/1.0.3/notation',
'https://petrinetdsl')]
[template public generateElement(aDiagram : Diagram)]
[comment @main/]
[file ('sample1.txt', false, 'UTF-8')]
try
[aDiagram.transientChildren.layoutConstraint/]
[for (aLayoutConstraint: LayoutConstraint | aDiagram.eAllContents())]
[aLayoutConstraint.eAllContents()/]
[/for]
[/file]
[/template]
it gives error package not found so i have added these lines in to register package
if(!isInWorkspace(petrinetdslPackage.class)) resourceSet.getPackageRegistry().put(petrinetdslPackage.eNS_URI, petrinetdslPackage.eINSTANCE);
but still not working.do you guys have any idea about it????
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.16326 seconds