Skip to main content
summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorDoug Schaefer2017-10-17 10:28:57 -0400
committerDoug Schaefer2017-10-17 10:38:23 -0400
commit2198597a98741dfc9c9a7cf574f7b7e75be4d269 (patch)
tree2059cd4712830e33259e12db2632fc1a19ed0882 /qt
parent6f06e634c4a248e6335fc553d583d368480fc1d3 (diff)
downloadorg.eclipse.cdt-2198597a98741dfc9c9a7cf574f7b7e75be4d269.tar.gz
org.eclipse.cdt-2198597a98741dfc9c9a7cf574f7b7e75be4d269.tar.xz
org.eclipse.cdt-2198597a98741dfc9c9a7cf574f7b7e75be4d269.zip
Make no toolchain error handling more generic and reuse with Qt
In particular when Qt Installs are missing. This is a similar scenario to when toolchains are missing. Change-Id: Ic78f71436e46c73900a556133c3883df807784d9
Diffstat (limited to 'qt')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java
index 7f6c38fa4a..545ce7f0b0 100644
--- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java
@@ -20,6 +20,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.ConsoleOutputStream;
import org.eclipse.cdt.core.ErrorParserManager;
import org.eclipse.cdt.core.IConsoleParser;
@@ -114,7 +115,8 @@ public class QtBuildConfiguration extends CBuildConfiguration
if (getQtInstall() == null) {
throw new CoreException(
- Activator.error(String.format(Messages.QtBuildConfiguration_ConfigNotFound, name)));
+ new Status(IStatus.ERROR, Activator.ID, CCorePlugin.STATUS_BUILD_CONFIG_NOT_VALID,
+ String.format(Messages.QtBuildConfiguration_ConfigNotFound, name), null));
}
String oldLaunchMode = settings.get(LAUNCH_MODE, null);

Back to the top