Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2015-01-09 13:59:00 +0000
committerDani Megert2015-01-09 13:59:00 +0000
commite2de87661da2ac8b3e41784fe1d1ec8990c9cbe6 (patch)
tree1037cb843d308ea2ba156804eb8feaf9958846f4
parentebe8f588bb7735d6f4b51aab477460d1ce3026f8 (diff)
downloadeclipse.platform.debug-e2de87661da2ac8b3e41784fe1d1ec8990c9cbe6.tar.gz
eclipse.platform.debug-e2de87661da2ac8b3e41784fe1d1ec8990c9cbe6.tar.xz
eclipse.platform.debug-e2de87661da2ac8b3e41784fe1d1ec8990c9cbe6.zip
Fixed bug 447129: Launch Ant / External Tool does not save dirty editors if build is disabledI20150113-0800
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SaveScopeResourcesHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SaveScopeResourcesHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SaveScopeResourcesHandler.java
index e496a1017..33707720c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SaveScopeResourcesHandler.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/SaveScopeResourcesHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2013 IBM Corporation and others.
+ * Copyright (c) 2006, 2015 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
@@ -203,7 +203,7 @@ public class SaveScopeResourcesHandler implements IStatusHandler {
return Boolean.TRUE;
}
}
- if (projects != null) {
+ if (projects != null && projects.length > 0) {
IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore();
String save = store.getString(IInternalDebugUIConstants.PREF_SAVE_DIRTY_EDITORS_BEFORE_LAUNCH);
int ret = showSaveDialog(projects, !save.equals(MessageDialogWithToggle.NEVER), save.equals(MessageDialogWithToggle.PROMPT));

Back to the top