From 2f63f1eac542722a671eaf8f08ebc377383e169c Mon Sep 17 00:00:00 2001 From: bwatt Date: Tue, 30 Apr 2013 15:44:02 -0500 Subject: Bug 406373 - Switching between launch configurations does not rebuild PerformanceAnalysisTab contents - See comment --- .../eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java | 8 ++++++-- 1 file 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()); } -- cgit v1.2.3