diff options
author | bwatt | 2013-04-30 20:44:02 +0000 |
---|---|---|
committer | bwatt | 2013-04-30 20:44:02 +0000 |
commit | 2f63f1eac542722a671eaf8f08ebc377383e169c (patch) | |
tree | f38385d17f901358fc6d266d69a28dafce265658 | |
parent | 7ed5a40f36217be029cfea93b42f1cf1eb11e78c (diff) | |
download | org.eclipse.ptp-2f63f1eac542722a671eaf8f08ebc377383e169c.tar.gz org.eclipse.ptp-2f63f1eac542722a671eaf8f08ebc377383e169c.tar.xz org.eclipse.ptp-2f63f1eac542722a671eaf8f08ebc377383e169c.zip |
Bug 406373 - Switching between launch configurations does not rebuild
PerformanceAnalysisTab contents - See comment
-rw-r--r-- | tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java b/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java index 63c42d6c2..9f47fcfc3 100644 --- a/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java +++ b/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java @@ -140,8 +140,12 @@ public class ETFWParentLaunchConfigurationTab extends JAXBControllerLaunchConfig } else if (attType.equals("string")) { //$NON-NLS-1$ configuration.setAttribute(attribute, value.toString()); } else if (attType.equals("integer")) { //$NON-NLS-1$ - int val = new Integer(value.toString()); - configuration.setAttribute(attribute, val); + if (value.toString().length() > 0) { + int val = new Integer(value.toString()); + configuration.setAttribute(attribute, val); + } else { + configuration.setAttribute(attribute, value.toString()); + } } else { configuration.setAttribute(attribute, value.toString()); } |