logic: moved javapath validation

* moved creation of java environment factory to build index method. This fixes a bug where project refresh was not working when setting the java path after loading the project.
This commit is contained in:
malte_langkabel
2016-08-29 10:49:59 +02:00
parent d3b10bc5fd
commit 4bac37096a
6 changed files with 25 additions and 5 deletions
+12 -2
View File
@@ -121,7 +121,7 @@ bool Project::refresh(bool forceRefresh)
}
}
if (!allowsRefresh())
if (!prepareRefresh())
{
return false;
}
@@ -245,6 +245,11 @@ void Project::load()
bool Project::buildIndex(bool forceRefresh)
{
if (!prepareIndexing())
{
return false;
}
m_fileManager.fetchFilePaths(
forceRefresh ? std::vector<FileInfo>() : m_storage->getInfoOnAllFiles()
);
@@ -325,7 +330,12 @@ bool Project::buildIndex(bool forceRefresh)
return true;
}
bool Project::allowsRefresh()
bool Project::prepareIndexing()
{
return true;
}
bool Project::prepareRefresh()
{
return true;
}