Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/plugin.xml7
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BuildBeforeLaunchStatusHandler.java30
2 files changed, 37 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/plugin.xml b/org.eclipse.debug.ui/plugin.xml
index 2c6264e83..980f9bca9 100644
--- a/org.eclipse.debug.ui/plugin.xml
+++ b/org.eclipse.debug.ui/plugin.xml
@@ -15,6 +15,7 @@
Patrick Chuong (Texas Instruments) - Improve usability of the breakpoint view (Bug 238956)
Patrick Chuong (Texas Instruments) - Move debug toolbar actions to main window (Bug 332784)
Axel Richard (Obeo) - Bug 41353 - Launch configurations prototypes
+ Alexander Fedorov <alexander.fedorov@arsysop.ru> - Bug 529651 - Launch group launches do not build before launch
-->
<plugin>
@@ -1711,6 +1712,12 @@
id="org.eclipse.debug.ui.groups.GroupLaunchHandler"
plugin="org.eclipse.debug.core">
</statusHandler>
+ <statusHandler
+ class="org.eclipse.debug.internal.ui.BuildBeforeLaunchStatusHandler"
+ code="206"
+ id="org.eclipse.debug.ui.statusHandlers.BuildBeforeLaunch"
+ plugin="org.eclipse.debug.core">
+ </statusHandler>
</extension>
<extension
point="org.eclipse.debug.ui.launchGroups">
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BuildBeforeLaunchStatusHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BuildBeforeLaunchStatusHandler.java
new file mode 100644
index 000000000..8fd45ffe8
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BuildBeforeLaunchStatusHandler.java
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2019 ArSysOp and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Alexander Fedorov <alexander.fedorov@arsysop.ru> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.internal.ui;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.debug.core.IStatusHandler;
+import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.jface.preference.IPreferenceStore;
+
+public class BuildBeforeLaunchStatusHandler implements IStatusHandler {
+
+ @Override
+ public Object handleStatus(IStatus status, Object source) throws CoreException {
+ IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore();
+ return Boolean.parseBoolean(store.getString(IDebugUIConstants.PREF_BUILD_BEFORE_LAUNCH));
+ }
+
+}

Back to the top