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
+3 -1
View File
@@ -33,6 +33,8 @@ bool SourceGroupJava::prepareIndexing()
std::vector<std::shared_ptr<IndexerCommand>> SourceGroupJava::getIndexerCommands(
std::set<FilePath>* filesToIndex, bool fullRefresh)
{
const std::string languageStandard = getSourceGroupSettingsJava()->getStandard();
std::vector<FilePath> classPath = getClassPath();
std::set<FilePath> indexedPaths;
@@ -61,7 +63,7 @@ std::vector<std::shared_ptr<IndexerCommand>> SourceGroupJava::getIndexerCommands
if (filesToIndex->find(sourcePath) != filesToIndex->end())
{
indexerCommands.push_back(
std::make_shared<IndexerCommandJava>(sourcePath, indexedPaths, excludedPaths, classPath));
std::make_shared<IndexerCommandJava>(sourcePath, indexedPaths, excludedPaths, languageStandard, classPath));
filesToIndex->erase(sourcePath);
}