|Generative Graphiti [message #651991]
||Wed, 02 February 2011 06:24
| Daniel Wetterbro
Registered: February 2011
I've been looking into the Graphiti framework and I think it looks very clean and promising. I'd like to use use it together with an EMF domain model that's pretty large. Is there any framework/project to generate Graphiti code much in the same way as the GMF tooling can be used to generate code for the GMF runtime?
|Re: Generative Graphiti [message #652155 is a reply to message #652034]
||Wed, 02 February 2011 13:58
| Volker Wegert
Registered: July 2009
"Tim Kaiser" <email@example.com> writes:|
> I'm not (yet) looking for an extension to the Graphiti framework
> facilities. But I'm having a big EMF meta model and would like to
> automatically generate Graphiti features code for a subset of elements from
> this model. Does there exist any special tool that could help me do that?
> I've looked into GMF, and I'm searching for something similar to the
> "mapping model" in the GMF tooling. My reason for considering Graphiti is
> its cleaner interface compared to the GMF runtime's.
> I'm not yet familiar with the generic code generation projects like JET,
> Xpand etc. (I know for example that Xpand is used to tweak code generation
> in GMF) Do you recommend using any such project in particular? or maybe some
> kind of model transformation?
For generation, I'd take a look at Xtend/Xpand, but that's a personal
preference. I've got several years of experience with various code generators,
and I've thought of generating some Graphiti code, too. Migrating a GMF
project to Graphiti, I found out that there is not much that is really worth
generating if you consider the features carefully. With some clever
inheritance and the upcoming patterns mechanism, you can be surprisingly
productive even without a generator. Besides, modeling and generating
behaviour is really hard.
That being said, there's one area that - in my opinion - could really use a
generator, and that's the graphical representation itself. It's a lot of
boring work to stuff lines into rectangles and get the positions and colors
just right, and it's even worse to code the features that update the graphical
representation. It'd be cool to have a graphiti editor that can be used to
draw the graphical representations for a Graphiti editor. :-) I've already
spent some thoughts on this, but I'd like to get a bit more fluent in graphiti
before trying to improve the toolkit :-)
* Volker Wegert * http://www.volker-wegert.de/contact *
"Man muß immer wieder mit Leuten rechnen, auf die man nicht zählen kann!"
|Re: Generative Graphiti [message #652988 is a reply to message #651991]
||Mon, 07 February 2011 15:11
| Jos Warmer
Registered: October 2010
I have started to use Graphiti for a large project and am working on a generator that can generate much of the default features you need in Graphiti from a simple model. It combines it in a flexible way with handwritten code on defined extension points so you can have the best of both worlds: the quick and simple MDD approach and the full possibility of tweaking it with java code.|
The bad news however is that the generator is currently very specific to the project and it will take time before I have a version that I can distribute in a useful way.
Powered by FUDForum
. Page generated in 0.02920 seconds