forked from qt-creator/qt-creator
Utils/all: Move mime constants into a central place
They are reasonably standardized, and generally usable cross-plugin, so this can help to avoid a few cross-plugin compiletime dependencies. Change-Id: Icb2b010c3e12dee69df54ab16f6f8e90d9cffba6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -10,12 +10,16 @@
|
||||
#include <languageclient/client.h>
|
||||
#include <languageclient/languageclientinterface.h>
|
||||
#include <languageclient/languageclientutils.h>
|
||||
|
||||
#include <projectexplorer/kitaspects.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectnodes.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <qtsupport/qtkitaspect.h>
|
||||
|
||||
#include <utils/environment.h>
|
||||
#include <utils/mimeconstants.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/temporarydirectory.h>
|
||||
#include <utils/variablechooser.h>
|
||||
@@ -80,7 +84,7 @@ JLSSettings::JLSSettings()
|
||||
m_settingsTypeId = Constants::JLS_SETTINGS_ID;
|
||||
m_name = "Java Language Server";
|
||||
m_startBehavior = RequiresProject;
|
||||
m_languageFilter.mimeTypes = QStringList(Constants::JAVA_MIMETYPE);
|
||||
m_languageFilter.mimeTypes = QStringList(Utils::Constants::JAVA_MIMETYPE);
|
||||
const FilePath &javaPath = Environment::systemEnvironment().searchInPath("java");
|
||||
if (javaPath.exists())
|
||||
m_executable = javaPath;
|
||||
|
||||
Reference in New Issue
Block a user