Code Generation for Graphiti [message #1073139] |
Wed, 24 July 2013 07:54 |
Till F. Messages: 58 Registered: August 2012 |
Member |
|
|
Hi guys,
I just had a closer look a Graphiti and I really like it. I also tried working with GMF some time ago, but was not satisfied. The way code generation is implemented there imposes very high maintanance cost (which actually should be reduced by code generation...). And the architecture / API provided by Graphiti looks cleaner and more natural to me.
Nevertheless, there's a problem with Graphiti - which is some kind of a showstopper for me: One has to implement a large number of add/create/whatever features for all the model elements. This is rather tedious and IMHO a perfect candidate for code generation. I think combining the architecture and API of graphiti with the idea of "code generation" could lead to awesome results. Is anyone working on something like that? It has already been asked some time ago, and there has been some feedback, but no positive response. Is there something new about it?
I fear that some people might think that if Graphiti user-code is auto-generated, the result would be similar to what we already have with GMF. But I don't think that this is true. First of all, customizing the generated code for Graphiti would be easier because of the really good architecture/API, which would still be available, of course. Secondly, one could definitely avoid certain problems of GMF (just let me say "re-generation") by using double-derived classes (= "generation gap pattern" in the jargon of Java/Eclipse ).
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03542 seconds