diff options
author | Michael Rennie | 2010-05-04 20:47:26 +0000 |
---|---|---|
committer | Michael Rennie | 2010-05-04 20:47:26 +0000 |
commit | 6cd29c1589ba7c6b7347305758feb887584f1731 (patch) | |
tree | f0ae40519f8cbbb80bc93eb18c4789cd8942b0e5 | |
parent | d2b5f684f1914f26d7c39b69aaaeb314b0646cbc (diff) | |
download | eclipse.platform.debug-6cd29c1589ba7c6b7347305758feb887584f1731.tar.gz eclipse.platform.debug-6cd29c1589ba7c6b7347305758feb887584f1731.tar.xz eclipse.platform.debug-6cd29c1589ba7c6b7347305758feb887584f1731.zip |
Bug 311017 - "Launch configuration New_configuration at ... does not exist"
2 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java index 3c43057a4..00437544e 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java @@ -1284,7 +1284,7 @@ public class LaunchConfigurationTabGroupViewer { IRunnableWithProgress runnable = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { - fOriginal = ((LaunchConfigurationWorkingCopy)fWorkingCopy).doSave(monitor); + ((LaunchConfigurationWorkingCopy)fWorkingCopy).doSave(monitor); } catch (CoreException e) {DebugUIPlugin.log(e);} } @@ -1292,7 +1292,7 @@ public class LaunchConfigurationTabGroupViewer { getLaunchConfigurationDialog().run(true, false, runnable); } else { - fOriginal = fWorkingCopy.doSave(); + fWorkingCopy.doSave(); } } updateButtons(); diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java index bd9685314..4aaa18803 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -273,6 +273,7 @@ public class LaunchConfigurationView extends AbstractDebugView implements ILaunc TreeViewer viewer = getTreeViewer(); if (viewer != null) { try { + viewer.getControl().setRedraw(false); viewer.add(configuration.getType(), configuration); // if moved, remove original now if (from != null) { @@ -284,6 +285,9 @@ public class LaunchConfigurationView extends AbstractDebugView implements ILaunc updateFilterLabel(); } catch (CoreException e) {} + finally { + viewer.getControl().setRedraw(true); + } } } |