diff options
author | Alexander Fedorov | 2019-07-02 07:54:47 +0000 |
---|---|---|
committer | Paul Pazderski | 2019-07-05 10:38:18 +0000 |
commit | 324f7342257c184b49912010121da919ef076060 (patch) | |
tree | 7a44a78c858b52b9f9f7e6567087f30205b3c816 /org.eclipse.debug.ui/ui/org | |
parent | 9af85f069eb2845cb5e7a7d2cda8f3e32d8ba6a2 (diff) | |
download | eclipse.platform.debug-324f7342257c184b49912010121da919ef076060.tar.gz eclipse.platform.debug-324f7342257c184b49912010121da919ef076060.tar.xz eclipse.platform.debug-324f7342257c184b49912010121da919ef076060.zip |
Bug 529651 - Launch group launches do not build before launch
Launch group delegates the build flag resolution to IStatusHandler that
reads the IDebugUIConstants.PREF_BUILD_BEFORE_LAUNCH preference
Change-Id: If8c6b1bbf0987279228e89edfd76e36157f097c2
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BuildBeforeLaunchStatusHandler.java | 30 |
1 files changed, 30 insertions, 0 deletions
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)); + } + +} |