ui: java not found popup

This commit is contained in:
malte_langkabel
2016-08-25 15:44:55 +02:00
parent 0268e924aa
commit d25bba4b59
+6 -1
View File
@@ -2,8 +2,9 @@
#include "data/parser/java/JavaEnvironmentFactory.h"
#include "data/parser/java/TaskParseJava.h"
#include "isTrial.h"
#include "utility/ResourcePaths.h"
#include "Application.h"
#include "isTrial.h"
JavaProject::~JavaProject()
{
@@ -43,6 +44,10 @@ JavaProject::JavaProject(
ResourcePaths::getJavaPath() + "java-symbol-solver-model.jar"
);
}
if (!JavaEnvironmentFactory::getInstance() && !isTrial())
{
Application::getInstance()->handleDialog("Coati was unable to locate Java on this machine.\nPlease make sure to provide the correct path in your preferences.");
}
}
std::shared_ptr<Task> JavaProject::createIndexerTask(