[jbosstools-commits] JBoss Tools SVN: r31046 - trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue May 3 17:01:25 EDT 2011
Author: dgolovin
Date: 2011-05-03 17:01:25 -0400 (Tue, 03 May 2011)
New Revision: 31046
Modified:
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
Log:
https://issues.jboss.org/browse/JBDS-1646 jBPM upload URL is: "/jbpm-console/upload" but it should be "/gpd-deployer/upload" in JBDS 4
fix for preferences initialization using plugin_customization.ini
Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
===================================================================
--- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java 2011-05-03 21:00:57 UTC (rev 31045)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java 2011-05-03 21:01:25 UTC (rev 31046)
@@ -1,20 +1,20 @@
package org.jbpm.gd.jpdl.prefs;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.jbpm.gd.jpdl.Plugin;
+import org.eclipse.core.runtime.preferences.DefaultScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
public class Initializer extends AbstractPreferenceInitializer implements PreferencesConstants {
@Override
public void initializeDefaultPreferences() {
- IPreferenceStore preferenceStore = Plugin.getDefault().getPreferenceStore();
- preferenceStore.setValue(SERVER_NAME, "localhost");
- preferenceStore.setValue(SERVER_PORT, "8080");
- preferenceStore.setValue(SERVER_DEPLOYER, "/jbpm-console/upload");
- preferenceStore.setValue(USE_CREDENTIALS, false);
- preferenceStore.setValue(USER_NAME, "user name");
- preferenceStore.setValue(PASSWORD, "password");
+ IEclipsePreferences preferenceStore = new DefaultScope().getNode("org.jbpm.gd.jpdl");
+ preferenceStore.put(SERVER_NAME, "localhost");
+ preferenceStore.put(SERVER_PORT, "8080");
+ preferenceStore.put(SERVER_DEPLOYER, "/jbpm-console/upload");
+ preferenceStore.putBoolean(USE_CREDENTIALS, false);
+ preferenceStore.put(USER_NAME, "user name");
+ preferenceStore.put(PASSWORD, "password");
}
}
More information about the jbosstools-commits
mailing list