Author: koen.aers(a)jboss.com
Date: 2010-07-19 06:34:32 -0400 (Mon, 19 Jul 2010)
New Revision: 23534
Added:
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
Modified:
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java
Log:
GPD-398
Modified: branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml
===================================================================
--- branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml 2010-07-19 10:24:32
UTC (rev 23533)
+++ branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml 2010-07-19 10:34:32
UTC (rev 23534)
@@ -1578,4 +1578,9 @@
<startup class="org.jbpm.gd.jpdl.StartupClass"/>
</extension>
+ <extension
+ point="org.eclipse.core.runtime.preferences">
+ <initializer class="org.jbpm.gd.jpdl.prefs.Initializer"/>
+ </extension>
+
</plugin>
Modified:
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java
===================================================================
---
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java 2010-07-19
10:24:32 UTC (rev 23533)
+++
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java 2010-07-19
10:34:32 UTC (rev 23534)
@@ -50,6 +50,9 @@
}
public String getServerName() {
+ if (serverName == null) {
+ serverName = getPrefs().getString(SERVER_NAME);
+ }
return serverName;
}
@@ -58,6 +61,9 @@
}
public String getServerPort() {
+ if (serverPort == null) {
+ serverPort = getPrefs().getString(SERVER_PORT);
+ }
return serverPort;
}
@@ -66,6 +72,9 @@
}
public String getServerDeployer() {
+ if (serverDeployer == null) {
+ serverDeployer = getPrefs().getString(SERVER_DEPLOYER);
+ }
return serverDeployer;
}
Added:
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
===================================================================
---
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
(rev 0)
+++
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java 2010-07-19
10:34:32 UTC (rev 23534)
@@ -0,0 +1,20 @@
+package org.jbpm.gd.jpdl.prefs;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.jbpm.gd.jpdl.Plugin;
+import org.eclipse.jface.preference.IPreferenceStore;
+
+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");
+ }
+
+}
Property changes on:
branches/jbosstools-3.1.x/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Show replies by date