|Re: Generative Graphiti [message #652155 is a reply to message #652034]
||Wed, 02 February 2011 18:58
| Volker Wegert
Registered: July 2009
"Tim Kaiser" <firstname.lastname@example.org> 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!"
Powered by FUDForum
. Page generated in 0.01760 seconds