When is a AdapterFactory loaded? [message #480601] |
Mon, 17 August 2009 16:01  |
Eclipse User |
|
|
|
Hi,
I am using a custom AdapterFactory to map IResources to my custom model.
That works fine - except for the startup, the factory is simply not
asked. Is that normal or is there a way to load that factory earlier?
regards
Christoph
|
|
|
|
|
|
Re: When is a AdapterFactory loaded? [message #483381 is a reply to message #483352] |
Tue, 01 September 2009 08:17  |
Eclipse User |
|
|
|
Daniel Krügler wrote on Tue, 01 September 2009 05:54 | I don't understand the hesitations to support this request. It would
be perfectly backward compatible (the default value would be false).
|
The reason centers on the 2 dev groups, I'll call them producers and consumers 
Producers want their stuff to work right, and in the shortest amount of code. That's why people still instantiate IActions (an anonymous inner class where you can set the label/icon, enabled state, and the execution code). Yes, it's tight coupling, but it's easy to do.
Consumers (especially large ones) want to control when things are loaded (I heard of one large consumer where a tweak to load a subcomponent on first access instead of on startup shaved 11 seconds off of the startup time).
If the producer gets to say "I'll always load so I'm 100% correct" the consumer can never say "well, I'll defer that until I need it".
Right now the workbench gives some powers to consumers and some to producers.
But that's the reason why default behaviour like that is *not* added without lots of discussion and dissension ... the goals are actually at odds, and the part of eclipse that's the framework (and has to support both cases) needs a lot of careful consideration.
PW
|
|
|
Powered by
FUDForum. Page generated in 0.24660 seconds