Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDisplay not available when plugin starts()
https://www.eclipse.org/forums/index.php/mv/msg/482190/1048512/#msg_1048512
Hello,
My plugin is a UI plugin (extends AbstractUIPlugin, FWIW).
It declares a Builder, and also a classpath container, among other things.
It also happens to have Preferences, extending AbstractPreferenceInitializer, using method initializeDefaultPreferences(), and declared via plugin.xml.
Recently, lots of users have reported problems for restarting their Eclipse, especially after a crash (be it unwanted, or provoked by them because Eclipse became unresponsive).
(I can now easily reproduce the situation by force-crashing my target platform, and then restarting).
What I see is that my plugin is started early on by the OSGi platform.
And since my Preferences depend on some JDT preferences, at some point there is a null pointer exception, because JDT preferences try to get some JFace PreferenceConverter, which in turn tries to get the Display.
But the display is not even created yet, and my plugin - and more than often the entire Eclipse - refuses to start.
Thanks in advance,
-- Laurent
]]>Laurent Petit2013-04-24T15:19:48-00:00Re: Display not available when plugin starts()
https://www.eclipse.org/forums/index.php/mv/msg/482190/1049001/#msg_1049001
2013-04-25T08:12:49-00:00Re: Display not available when plugin starts()
https://www.eclipse.org/forums/index.php/mv/msg/482190/1049004/#msg_1049004
Or is it ?
I mean, there may be some problem with the Compatibility layer with Eclipse 3 ?
I will follow your suggestion anyway, and cross post to the plug-in forums, thanks.]]>Laurent Petit2013-04-25T08:16:28-00:00Re: Display not available when plugin starts()
https://www.eclipse.org/forums/index.php/mv/msg/482190/1049006/#msg_1049006
and try it there. If it works there and not on 4.x, it's possibly compat's layer issue.]]>2013-04-25T08:20:45-00:00Re: Display not available when plugin starts()
https://www.eclipse.org/forums/index.php/mv/msg/482190/1049009/#msg_1049009
Laurent Petit2013-04-25T08:22:13-00:00Re: Display not available when plugin starts()
https://www.eclipse.org/forums/index.php/mv/msg/482190/1049010/#msg_1049010
-> 8 )]]>2013-04-25T08:22:58-00:00