[jbosstools-commits] JBoss Tools SVN: r23532 - in trunk/jbpm/plugins/org.jbpm.gd.jpdl: src/org/jbpm/gd/jpdl/deployment and 1 other directories.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Jul 19 05:56:04 EDT 2010
Author: koen.aers at jboss.com
Date: 2010-07-19 05:56:03 -0400 (Mon, 19 Jul 2010)
New Revision: 23532
Added:
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
Modified:
trunk/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml
trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java
Log:
GPD-398
Modified: trunk/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml
===================================================================
--- trunk/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml 2010-07-19 09:38:05 UTC (rev 23531)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/plugin.xml 2010-07-19 09:56:03 UTC (rev 23532)
@@ -1576,6 +1576,10 @@
<extension point="org.eclipse.ui.startup">
<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: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java
===================================================================
--- trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java 2010-07-19 09:38:05 UTC (rev 23531)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/deployment/DeploymentInfo.java 2010-07-19 09:56:03 UTC (rev 23532)
@@ -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: 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 (rev 0)
+++ trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java 2010-07-19 09:56:03 UTC (rev 23532)
@@ -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: trunk/jbpm/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
More information about the jbosstools-commits
mailing list