PlatformUI.getPreferenceStore() without values? [message #657649] |
Thu, 03 March 2011 10:22  |
Eclipse User |
|
|
|
I'm currently working on deploying a RAP application to Tomcat. The application works fine when it's started with the jetty included in eclipse.
I use a org.eclipse.ui.dialogs.FilteredTree inside a view. When the application is deployed in tomcat, filteredTree.getFilterControl() returns a null value.
After checking the source of the RAP-FilteredTree, I found this code:
...
showFilterControls = PlatformUI.getPreferenceStore().getBoolean(IWorkbenchPreferenceConstants.SHOW_FILTERED_TEXTS);
...
if (showFilterControls) {
// add filter controls
}
So, it seems that showFilterControls has the correct value (true) when the application is started inside eclipse, and that it has the PreferenceStore's default value (which is false) when the application is deployed inside a war in tomcat.
In regards to that PreferenceStore, I found some info for RCP applications (which talk about .ini files where you can set values for the preferences in IWorkbenchPreferenceConstants). However, none of this seems to apply to RAP.
Could someone explain the mechanism in RAP that loads those settings or point me to some documentation that I can use?
Thanks in advance!
[Updated on: Thu, 03 March 2011 10:23] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03984 seconds