Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
index f3c09ca65..47e430b27 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
@@ -1211,18 +1211,16 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
*/
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException {
if (getShell() != null && getShell().isVisible()) {
- if (getShell() != null) {
- // Save focus control
- fLastControl = getShell().getDisplay().getFocusControl();
- if (fLastControl != null && fLastControl.getShell() != getShell()) {
- fLastControl = null;
- }
- fProgressMonitorCancelButton.setEnabled(true);
- // Attach the progress monitor part to the cancel button
- fProgressMonitorPart.attachToCancelComponent(fProgressMonitorCancelButton);
- fProgressMonitorPart.getParent().setVisible(true);
- fProgressMonitorCancelButton.setFocus();
+ // Save focus control
+ fLastControl = getShell().getDisplay().getFocusControl();
+ if (fLastControl != null && fLastControl.getShell() != getShell()) {
+ fLastControl = null;
}
+ fProgressMonitorCancelButton.setEnabled(true);
+ // Attach the progress monitor part to the cancel button
+ fProgressMonitorPart.attachToCancelComponent(fProgressMonitorCancelButton);
+ fProgressMonitorPart.getParent().setVisible(true);
+ fProgressMonitorCancelButton.setFocus();
fActiveRunningOperations++;
try {
ModalContext.run(runnable, fork, fProgressMonitorPart, getShell().getDisplay());

Back to the top