Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2008-05-05 17:48:14 +0000
committerBenjamin Muskalla2008-05-05 17:48:14 +0000
commit3a71a9f863bfc66fda995a49a9ddf262fcd46d50 (patch)
tree0fba9f373a3aa9315264a20f15304a3859a51b06 /bundles/org.eclipse.rap.ui/src
parentd15b804f03eb05b5a506c2dcc5c80f76b06181cf (diff)
downloadorg.eclipse.rap-3a71a9f863bfc66fda995a49a9ddf262fcd46d50.tar.gz
org.eclipse.rap-3a71a9f863bfc66fda995a49a9ddf262fcd46d50.tar.xz
org.eclipse.rap-3a71a9f863bfc66fda995a49a9ddf262fcd46d50.zip
fixed colors part 2
Diffstat (limited to 'bundles/org.eclipse.rap.ui/src')
-rwxr-xr-xbundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java101
1 files changed, 48 insertions, 53 deletions
diff --git a/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java b/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java
index 9ac4022be5..d758133670 100755
--- a/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java
+++ b/bundles/org.eclipse.rap.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java
@@ -12,17 +12,11 @@
*******************************************************************************/
package org.eclipse.ui.internal;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.DefaultScope;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.IScopeContext;
-import org.eclipse.core.runtime.preferences.InstanceScope;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent;
import org.eclipse.ui.IWorkbenchPreferenceConstants;
-import org.osgi.service.prefs.BackingStoreException;
/**
* Implementation of the UI plugin's preference extension's customization
@@ -150,53 +144,54 @@ public class UIPreferenceInitializer extends AbstractPreferenceInitializer {
// Default the sticky view close behaviour to the new style
node.putBoolean(IWorkbenchPreferenceConstants.ENABLE_32_STICKY_CLOSE_BEHAVIOR, false);
- IEclipsePreferences rootNode = (IEclipsePreferences) Platform
- .getPreferencesService().getRootNode()
- .node(InstanceScope.SCOPE);
-
- final String uiName = UIPlugin.getDefault().getBundle()
- .getSymbolicName();
- try {
- if (rootNode.nodeExists(uiName)) {
- ((IEclipsePreferences) rootNode.node(uiName))
- .addPreferenceChangeListener(PlatformUIPreferenceListener
- .getSingleton());
- }
- } catch (BackingStoreException e) {
- IStatus status = new Status(IStatus.ERROR, UIPlugin.getDefault()
- .getBundle().getSymbolicName(), IStatus.ERROR, e
- .getLocalizedMessage(), e);
- UIPlugin.getDefault().getLog().log(status);
- }
-
- rootNode
- .addNodeChangeListener(new IEclipsePreferences.INodeChangeListener() {
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener#added(org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent)
- */
- public void added(NodeChangeEvent event) {
- if (!event.getChild().name().equals(uiName)) {
- return;
- }
- ((IEclipsePreferences) event.getChild())
- .addPreferenceChangeListener(PlatformUIPreferenceListener
- .getSingleton());
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener#removed(org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent)
- */
- public void removed(NodeChangeEvent event) {
- // Nothing to do here
-
- }
-
- });
+ // RAP [fappel]: instance scope vs. session scope
+// IEclipsePreferences rootNode = (IEclipsePreferences) Platform
+// .getPreferencesService().getRootNode()
+// .node(InstanceScope.SCOPE);
+//
+// final String uiName = UIPlugin.getDefault().getBundle()
+// .getSymbolicName();
+// try {
+// if (rootNode.nodeExists(uiName)) {
+// ((IEclipsePreferences) rootNode.node(uiName))
+// .addPreferenceChangeListener(PlatformUIPreferenceListener
+// .getSingleton());
+// }
+// } catch (BackingStoreException e) {
+// IStatus status = new Status(IStatus.ERROR, UIPlugin.getDefault()
+// .getBundle().getSymbolicName(), IStatus.ERROR, e
+// .getLocalizedMessage(), e);
+// UIPlugin.getDefault().getLog().log(status);
+// }
+//
+// rootNode
+// .addNodeChangeListener(new IEclipsePreferences.INodeChangeListener() {
+// /*
+// * (non-Javadoc)
+// *
+// * @see org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener#added(org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent)
+// */
+// public void added(NodeChangeEvent event) {
+// if (!event.getChild().name().equals(uiName)) {
+// return;
+// }
+// ((IEclipsePreferences) event.getChild())
+// .addPreferenceChangeListener(PlatformUIPreferenceListener
+// .getSingleton());
+//
+// }
+//
+// /*
+// * (non-Javadoc)
+// *
+// * @see org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener#removed(org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent)
+// */
+// public void removed(NodeChangeEvent event) {
+// // Nothing to do here
+//
+// }
+//
+// });
}
}

Back to the top