[XPand] Supporting @generated style protection [message #641508] |
Thu, 25 November 2010 12:59  |
Eclipse User |
|
|
|
I think this has come up before (maybe on older oAW forums) but I've been talking with new contributors and they'd like to have support for the @generated pattern ala Jet. That is one pattern from Jet that I do wish it were possible to do in XPand.
Since XPand is not targeting Java per se I don't see how there could be built-in support for that, but we're wondering if people have ideas for how it might be accomplished. I can't really think of anything since the only way to do protected regions is to have a begin and end marker. Has anyone else thought about this or are there ideas for supporting it in XPand somehow?
As an aside, my own opinion is that it is not necessarily needed. I am using the protected regions now and I find it sort of awkward to maintain such code myself and I imagine that is the case for users as well. But personally I'm not a big fan of annotations, and have been moving much more toward a provider centric model where the code is very discrete and fine-granined. That way you can simply mark an entire element in the model (not the code) for non-generation and people can then protect and edit the whole class document. But I can definitely see the arguments for it, the most important being that people who are using EMF, etc.. are very used to it and it is really transparent.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08373 seconds