Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Generated editor code
Generated editor code [message #416180] Mon, 21 January 2008 15:04 Go to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
The generate editor code is, as most generated code tends to be, very
large and contains a lot of inner classes. It seems that at least some
of it could be extracted out into configurable (and reusable) classes
instead of being generated inline with the main editor code.
I'm look right now at the resourceChangeListener and partListener code,
but I'd bet there are other opportunities, too.
Is this worth opening a Bugzilla report for? Let's say I could
contribute a configurable class that all generated editors could use,
for example, as their resource change lisetener; what is involved in
changing the generation templates to use that? IOW, how much effort
would that be?

Eric
Re: Generated editor code [message #416182 is a reply to message #416180] Mon, 21 January 2008 15:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Eric,

There was some recent discussion about the reason for generating a whack
of code that's mostly generic. On the plus side, you'd have a tiny
editor. On the minus side, every change we make to the base editor
effects everyone directly even if they don't regenerate. It's also less
obvious that you can change anything and everything however you like.
Bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=108470 also deals
with that to an extent. It's certainly reasonable that we could have
another style of editor to generate, but it's more likely I'd want to
focus on eRCP and RAP than on this issue (as if I have time for any of
them)...


Eric Rizzo wrote:
> The generate editor code is, as most generated code tends to be, very
> large and contains a lot of inner classes. It seems that at least some
> of it could be extracted out into configurable (and reusable) classes
> instead of being generated inline with the main editor code.
> I'm look right now at the resourceChangeListener and partListener
> code, but I'd bet there are other opportunities, too.
> Is this worth opening a Bugzilla report for? Let's say I could
> contribute a configurable class that all generated editors could use,
> for example, as their resource change lisetener; what is involved in
> changing the generation templates to use that? IOW, how much effort
> would that be?
>
> Eric


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Compute ChangeDescription Inverse
Next Topic:EMF model gobal registry lazy load?
Goto Forum:
  


Current Time: Thu Apr 18 00:33:52 GMT 2024

Powered by FUDForum. Page generated in 0.02019 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top