aniatbr / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Allow registering post processors #258

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

are there anyway to set the shape values to my emf model. E.g. I want to set 
the shape size, background, foreground, styles, etc. in my model for further 
use.

If it isn't work, which place can I get the shape information to transfer it to 
my emf model?

Because I want to represent each shape in my custom viewpart with other javafx. 
Thats why I want to set all the style information in my emf model.

Thanks a lot.

best regards,

dowbar 

Original issue reported on code.google.com by dowbar2...@googlemail.com on 16 Apr 2013 at 9:33

GoogleCodeExporter commented 8 years ago
It always has been the idea of Spray to clearly separate domain model and 
diagram model, so there is no support for this use case out of the box.

You can try to add a post processing step (e.g. when saving the diagram file) 
where you read in the Graphiti diagram model as well as the domain model and 
query the diagram values you need from diagram model and set them to the domain 
model. 

Another way could be to change the logic of your custom view parts to use both 
diagram model as well as domain model (as in the diagram model there is the 
link to the domain model element for each shape). 

Original comment by de.abg.r...@gmail.com on 17 Apr 2013 at 9:06

GoogleCodeExporter commented 8 years ago
by the way, I posted a standalone example for post processing diagram and 
domain model: http://groups.google.com/group/spray-dev/msg/3a6f4cb3378529a6

Original comment by de.abg.r...@gmail.com on 17 May 2013 at 3:07

GoogleCodeExporter commented 8 years ago
It would be great if the generation can be triggered automatically by Spray and 
the user is able to configure (bind) his own generator (maybe as subclass of an 
abstract Generator provided by Spray with default methods).

Another great step could be, that the generator is triggered by an event on the 
Graphiti diagram (possible events are "onUpdate" "onSave"). 

It should be analysed if this data could be configured in the Spray DSL.

Possible syntax?
diagram busmod for BusinessDomainModel generate onSave BusModGenerator

Original comment by fabio.filippelli on 18 May 2013 at 8:52

GoogleCodeExporter commented 8 years ago

Original comment by de.abg.r...@gmail.com on 14 Jul 2013 at 1:40