logic: added all previous java version to Java language standard selection

This commit is contained in:
mlangkabel
2017-11-06 18:49:29 +01:00
parent 595f918f4d
commit 6fad9eea84
12 changed files with 279 additions and 15 deletions
+4 -2
View File
@@ -82,16 +82,17 @@ void JavaParser::buildIndex(std::shared_ptr<IndexerCommandJava> indexerCommand)
classPath += path.str() + ";";
}
buildIndex(indexerCommand->getSourceFilePath(), classPath, TextAccess::createFromFile(indexerCommand->getSourceFilePath()));
buildIndex(indexerCommand->getSourceFilePath(), indexerCommand->getLanguageStandard(), classPath, TextAccess::createFromFile(indexerCommand->getSourceFilePath()));
}
void JavaParser::buildIndex(const FilePath& filePath, std::shared_ptr<TextAccess> textAccess)
{
buildIndex(filePath, "", textAccess);
buildIndex(filePath, "8", "", textAccess);
}
void JavaParser::buildIndex(
const FilePath& sourceFilePath,
const std::string& languageStandard,
const std::string& classPath,
std::shared_ptr<TextAccess> textAccess)
{
@@ -113,6 +114,7 @@ void JavaParser::buildIndex(
m_id,
m_currentFilePath.str(),
fileContent,
languageStandard,
classPath,
verbose
);