Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Printing GenModel Diagram Textually
Printing GenModel Diagram Textually [message #724211] Sun, 11 September 2011 13:08 Go to next message
Kieara  is currently offline Kieara Friend
Messages: 8
Registered: September 2011
Junior Member
Hello,


Could anyone please tell me is it possible to navigate through the instance model tree generated after generating the EMF genmodel, in order to print the instances textually? Also, please let me know the method.

What I want is: Suppose my ecore diagram is named : process.ecore
When I Run it as an eclipse application and require to generate Process Model (selecting the Example EMF Model Creation Wizard) and generate something like this

process:
-process p1
-sequence
-process p2
-parallel
----process p3

sequence represented by ';' and parallel represented by '|'
therefore I should get an output like ' (p1;p2)|p3 '

Thank you
Kieara.
Re: Printing GenModel Diagram Textually [message #724235 is a reply to message #724211] Sun, 11 September 2011 16:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Please avoid cross posting the same question to multiple newsgroups.


On 11/09/2011 6:08 AM, Kieara wrote:
> Hello,
>
>
> Could anyone please tell me is it possible to navigate through the
> instance model tree generated after generating the EMF genmodel, in
> order to print the instances textually? Also, please let me know the
> method.
>
> What I want is: Suppose my ecore diagram is named : process.ecore
> When I Run it as an eclipse application and require to generate
> Process Model (selecting the Example EMF Model Creation Wizard) and
> generate something like this
>
> process:
> -process p1
> -sequence
> -process p2
> -parallel
> ----process p3
>
> sequence represented by ';' and parallel represented by '|'
> therefore I should get an output like ' (p1;p2)|p3 '
>
> Thank you
> Kieara.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Printing GenModel Diagram Textually [message #724369 is a reply to message #724235] Mon, 12 September 2011 08:07 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

you should consider using XText for defining your syntax. This gives you the option to view it in a textual notation and to edit it by using this notation.

Ralph
Previous Topic:Generated Element IDs (xmi:id)?
Next Topic:Path of the current diagram
Goto Forum:
  


Current Time: Fri Mar 29 08:38:09 GMT 2024

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

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

Back to the top