Graphical view for Xtext [message #1724858] |
Fri, 26 February 2016 10:13  |
Eclipse User |
|
|
|
Hi,
I am developing DSL using Xtext and i am hoping to be able to generate graphical diagram/view based on my DSL code. (I do not want a graphical editor). However, the graphical view is not describing the AST itself instead it is based on some custom diagramming and layout algorithm.
MY DSL example code will looks like this:
create_domain domain1 {
element: u1
}
create_domain domain2 {
element: u1/u11
}
create_domain domain3{
element: u1/u12
}
And my desired graphical view would looks like this:

From my code, "create_domain" will create a rectangle shape (it can be any custom shape, doesn't have to be rectangle) with its name above it. The hierarchy is based on the "element" defined for each domain. The "/" sign indicates the child of a parent domain. Thus, u11 and u12 is the child of u1 which is shown in the diagram above.
My problem now is that i do not know which kind of graphical framework or tools should i go for to achieve something like this as well as integrating with Xtext. I had been looking into Graphitti, GMF, JavaFx, Kieler and etc but i am still lost. So, I am hoping to get some guidance on what kind of approach or direction should i proceed.
I would really really appreciate for any guidance that is given to me considering i am still a newbie in this field. Thanks in advance.
Regards
Hanli
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04241 seconds