Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWassim Melhem2005-09-18 06:57:40 +0000
committerWassim Melhem2005-09-18 06:57:40 +0000
commit3b7c946741d14c5c0dd063a701182c3ac8a64c54 (patch)
treeb5a2dfd0d6d3f16003eb83c9744ccecf63ed0e9c
parentfc93587b2e633fc122d4ec97752588b4c0060d12 (diff)
downloadeclipse.pde.ui-New_Launcher.tar.gz
eclipse.pde.ui-New_Launcher.tar.xz
eclipse.pde.ui-New_Launcher.zip
*** empty log message ***New_Launcher
-rw-r--r--ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchPluginValidator.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchPluginValidator.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchPluginValidator.java
index ed5ed71467..1def05b463 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchPluginValidator.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchPluginValidator.java
@@ -49,13 +49,13 @@ public class LaunchPluginValidator {
String value = configuration.getAttribute("wsproject", (String)null);
if (value != null) {
wc.setAttribute("wsproject", (String)null);
- if (";".equals(value) || ":".equals(value)) {
- value = null;
- } else if (value.indexOf(';') != -1) {
- value = value.replace(';', ',');
+ if (value.indexOf(';') != -1) {
+ value = value.replace(';', ',');
} else if (value.indexOf(':') != -1) {
value = value.replace(':', ',');
}
+ value = (value.length() == 0 || value.equals(","))
+ ? null : value.substring(0, value.length() - 1);
boolean automatic = configuration.getAttribute(IPDELauncherConstants.AUTOMATIC_ADD, true);
String attr = automatic
@@ -71,6 +71,8 @@ public class LaunchPluginValidator {
value2 = value2.replace(';', ',');
else if (value2.indexOf(':') != -1)
value2 = value2.replace(':', ',');
+ value2 = (value2.length() == 0 || value2.equals(","))
+ ? null : value2.substring(0, value2.length() - 1);
wc.setAttribute(IPDELauncherConstants.SELECTED_TARGET_PLUGINS, value2);
}

Back to the top