|AbstractContributionFactory doesn't work anymore [message #1065552]
||Wed, 26 June 2013 09:28
| Ralph P
Registered: September 2010
Location: Frankfurt, Germany
I've implemented a plug-in in Eclipse 3.7 which can dynamically populate the Eclipse menu bar.
To achieve this I had to extend the AbstractContributionFactory, implemented its createContributionItems(...) method and register the factory to the IMenuService of the WorkbenchWindow.
The code works fine in Eclipse 3.7, even in Eclipse 3.8.
The only problem in Eclipse 4.2.2 is now that the AbstractContributionFactory#createContributionItems() method is never called.
The javadoc says:
This method is not meant to be called by clients. It will be called by the menu service at the appropriate time.
That doesn't seem to be true in Eclipse 4.2.2.
The only caller of that method seems to be ContributionFactoryGenerator#compute(...). I found out that the ContributionFactoryGenerator is created from my AbstractContributionFactory but I can't find how the compute(...) method can be triggered.
Thanks in advance for any help.
Powered by FUDForum
. Page generated in 0.04070 seconds