|IViewActionDelegate init not always called [message #889853]
||Tue, 19 June 2012 18:45
| Lars Schütze
Registered: March 2012
I have two plug-ins. The first one has a view in whose toolbar I want to add a button from the second plug-in. Therefor the second plug-in uses the viewActions extension to access the first plug-ins view.
In the init method of the associated IViewActionDelegate I add this button to the toolbar of the first plug-in.
In general this approach works just fine. But the view belongs to a perspective. The problem is: When Eclipse is started and this perspective is active and the view is shown, the added button does not appear in the toolbar. I have to close and re-open the view to make the button appear.
How can I ensure that the init() method from the IViewActionDelegate will be called when the view is created on start-up?
Does this have anything common with Eclipse Bug #213545? (Sorry, I am not allowed to post links until now.)
Thanks for your convenience.
Powered by FUDForum
. Page generated in 0.12820 seconds