Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-11-29 16:07:59 -0500
committerPawel Piech2010-11-29 16:07:59 -0500
commit7ed85416622e823f643bb7ea9f8e3e1bffcec881 (patch)
tree547e73464d230f499c4c598fb4d98b3b0c957724
parent56833f7e0e7e4d03c26a68f875a43d00bab5735d (diff)
downloadeclipse.platform.debug-7ed85416622e823f643bb7ea9f8e3e1bffcec881.tar.gz
eclipse.platform.debug-7ed85416622e823f643bb7ea9f8e3e1bffcec881.tar.xz
eclipse.platform.debug-7ed85416622e823f643bb7ea9f8e3e1bffcec881.zip
Bug 327446 - Launch's wait for build logic does not check for autobuild correctly
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
index 59c95f0e8..ca449656f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Sascha Radike - bug 56642
+ * Martin Oberhuber (Wind River) - [327446] Avoid unnecessary wait-for-build dialog.
*******************************************************************************/
package org.eclipse.debug.internal.ui;
@@ -1063,7 +1064,8 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ILaunchListener {
public static void launchInBackground(final ILaunchConfiguration configuration, final String mode) {
final IJobManager jobManager = Job.getJobManager();
IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore();
- boolean wait = (jobManager.find(ResourcesPlugin.FAMILY_AUTO_BUILD).length > 0) || (jobManager.find(ResourcesPlugin.FAMILY_MANUAL_BUILD).length > 0);
+ boolean wait = (jobManager.find(ResourcesPlugin.FAMILY_AUTO_BUILD).length > 0 && ResourcesPlugin.getWorkspace().isAutoBuilding())
+ || (jobManager.find(ResourcesPlugin.FAMILY_MANUAL_BUILD).length > 0);
String waitPref = store.getString(IInternalDebugUIConstants.PREF_WAIT_FOR_BUILD);
if (wait) { // if there are build jobs running, do we wait or not??
if (waitPref.equals(MessageDialogWithToggle.PROMPT)) {

Back to the top