MarkusGerhart / spray

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

Move complete generator logic to o.e.s.generator.graphiti #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Spray language plugin should not have a dependency on Graphiti related 
plugins (o.e.s.generator.graphiti, o.e.s.runtime.graphiti), the dependency must 
be vice versa.

The reason why o.e.s.xtext depends on o.e.s.generator.graphiti is that 
SprayGenerator.xtend invokes the Graphiti generator. The classes from package 
o.e.s.xtext.generator must be moved to o.e.s.graphiti.generator.

To trigger the build in the UI as before, a BuilderParticipant must be 
registered outside of the language plugins. Since this is UI related, a new 
plugin o.e.s.generator.graphiti.ui must be introduced.

As a result, o.e.s.xtext must not have a dependency to any *.graphiti.* plugin 
and the code generator in the UI must still be triggered on model save.

Original issue reported on code.google.com by karsten....@googlemail.com on 26 Sep 2011 at 11:26

GoogleCodeExporter commented 8 years ago
Added new project org.eclipselabs.spray.generator.graphiti.ui

Described changes in detail in this blog post:
http://kthoms.wordpress.com/2011/09/28/moving-an-xtend-generator-into-its-own-pl
ugin/

Original comment by karsten....@googlemail.com on 28 Sep 2011 at 9:35