Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » how to read Eugenia diagram model in Acceleo?
how to read Eugenia diagram model in Acceleo? [message #1833174] Mon, 05 October 2020 14:36 Go to next message
Fatima Rani is currently offline Fatima RaniFriend
Messages: 22
Registered: April 2020
Junior Member
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????
Re: how to read Eugenia diagram model in Acceleo? [message #1833179 is a reply to message #1833174] Mon, 05 October 2020 16:47 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi

Have you tried registering all your packages, e.g. http://www.eclipse.org/gmf/runtime/1.0.3/notation

Regards

Ed Willink
Re: how to read Eugenia diagram model in Acceleo? [message #1833201 is a reply to message #1833179] Tue, 06 October 2020 13:17 Go to previous messageGo to next message
Fatima Rani is currently offline Fatima RaniFriend
Messages: 22
Registered: April 2020
Junior Member
Hi!

yes i have registered the packages as shown in the attached images .
but .....
  • Attachment: 1.jpg
    (Size: 389.57KB, Downloaded 123 times)
  • Attachment: 2.jpg
    (Size: 517.87KB, Downloaded 120 times)
  • Attachment: 3.jpg
    (Size: 414.99KB, Downloaded 117 times)
  • Attachment: 4.jpg
    (Size: 480.27KB, Downloaded 114 times)
Re: how to read Eugenia diagram model in Acceleo? [message #1833213 is a reply to message #1833201] Tue, 06 October 2020 18:07 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi

JPEGs are a totally inappropriate way in which to communicate code. I suggest you read https://wiki.eclipse.org/OCL/ForumNetiquette so that you can report a problem in a way that does not just provoke a time wasting game of ping pong.

Regards

Ed Willink
Previous Topic:Acceleo xmi to java
Next Topic:Make Acceleo usable by non-programmers
Goto Forum:
  


Current Time: Fri Dec 13 20:45:50 GMT 2024

Powered by FUDForum. Page generated in 0.02882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top