PlatformUI.getPreferenceStore() without values? [message #657649] |
Thu, 03 March 2011 15:22 |
Noone Messages: 8 Registered: March 2011 |
Junior Member |
|
|
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 15:23] Report message to a moderator
|
|
|
|
|
|
|
Re: PlatformUI.getPreferenceStore() without values? [message #658604 is a reply to message #658535] |
Wed, 09 March 2011 08:54 |
Noone Messages: 8 Registered: March 2011 |
Junior Member |
|
|
You are correct - I should have described it more exactly I guess. What happened was this:
When starting the application from inside Eclipse (with the embedded jetty) it works fine.
When deploying the application as .war file into a Tomcat or a standalone Jetty, it does not work.
The .war file is created in a headless build, so there is probably something wrong with the build process. However, I have no idea where to look for the error: Is something missing inside the .war? Is one of the various configuration files inside incomplete/incorrect? Something else?
The examples I found for deploying RAP applications as .war do not contain anything in regards to those preferences (as far as I can tell).
[Updated on: Wed, 09 March 2011 09:08] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04607 seconds