Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » modeler for large DSL(I have over 200 element types in my schema to model.. )
modeler for large DSL [message #1712330] Fri, 23 October 2015 04:32 Go to next message
Robert Scott is currently offline Robert ScottFriend
Messages: 15
Registered: June 2015
Junior Member
I built a modeler for my first project but there were only 6 element types in the schema so I mapped each element to to a graphical element and added a create tool for each. Works great.

Now I need a modeler for a schema with over 200 element types. I can't afford to do them 1 by 1. I would like a generic mapping that handles any element type and use reflection to determine the attributes and contained elements.

I Also need something generic for the tool set.. maybe a create tool with a drop-down list of element types or something. I am building a diagram with element based edges not a tree.

I've not been able to get the reflection In Acceleo to do what I need I suspect I need to call out to Java.

Any suggestions appreciated.

Rob
Re: modeler for large DSL [message #1712589 is a reply to message #1712330] Mon, 26 October 2015 16:06 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

Le 23/10/2015 06:32, Robert Scott a écrit :
> I built a modeler for my first project but there were only 6 element
> types in the schema so I mapped each element to to a graphical element
> and added a create tool for each. Works great.
> Now I need a modeler for a schema with over 200 element types. I can't
> afford to do them 1 by 1. I would like a generic mapping that handles
> any element type and use reflection to determine the attributes and
> contained elements.

It's not the Sirius approach.

>
> I Also need something generic for the tool set.. maybe a create tool
> with a drop-down list of element types or something. I am building a
> diagram with element based edges not a tree.
> I've not been able to get the reflection In Acceleo to do what I need I
> suspect I need to call out to Java.
> Any suggestions appreciated.

The best approach, I imagine, is a "tool" that initializes your VSM
according to your metamodel (1 mapping for each element type, 1 creation
tool for each element type, ...). It is not iterative, but it allows to
initialize the VSM the first time.

>
> Rob

Regards,

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:How to keep the relative position of nodes when copy paste?
Next Topic:Generating the Table Editor code
Goto Forum:
  


Current Time: Tue Apr 23 10:03:45 GMT 2024

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

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

Back to the top