RCP Application and Preferences - how? [message #45445] |
Tue, 17 August 2004 17:05 |
Eclipse User |
|
|
|
Originally posted by: mg0319.sbc.com
I'm trying to setup a preference page with an RCP Application. When I
run my RCP Application code as a plug-in the preferences work fine. I
use getPreferenceStore() method on the base class (AbstractUIPlugin) and
all is well. When I try running under the RCP scenario my application
works fine but I get errors loading the preference page.
I assume that's because I'm not running as a plugin class and certain
things haven't been initialized. Debugging into the eclipse code it
seems in core.runtime.Plugin.getPreferences() my bundle reference is
null. I get a null pointer exception due to that.
I'm new to the platform and have looked for an example of using
preferences with RCP but haven't found anything. Appreciate any
pointers. Hope this is the right forum, noticed a lot of RCP questions
here...
-Mark
|
|
|
Re: RCP Application and Preferences - how? [message #45474 is a reply to message #45445] |
Fri, 20 August 2004 17:54 |
Eclipse User |
|
|
|
Originally posted by: chaves.nospam.inf.ufsc.br.ok
eclipse.platform is the right newsgroup.
news.eclipse.org wrote:
> I'm trying to setup a preference page with an RCP Application. When I
> run my RCP Application code as a plug-in the preferences work fine. I
> use getPreferenceStore() method on the base class (AbstractUIPlugin) and
> all is well. When I try running under the RCP scenario my application
> works fine but I get errors loading the preference page.
> I assume that's because I'm not running as a plugin class and certain
> things haven't been initialized. Debugging into the eclipse code it
> seems in core.runtime.Plugin.getPreferences() my bundle reference is
> null. I get a null pointer exception due to that.
> I'm new to the platform and have looked for an example of using
> preferences with RCP but haven't found anything. Appreciate any
> pointers. Hope this is the right forum, noticed a lot of RCP questions
> here...
> -Mark
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03228 seconds