logic: cleaned up code for SourceGroupSettings and Wizzard
* Flattened sourcegroupsettings class hierarchy by moving cross compilation options to own base class * QtProjectWizzardContentFlags constructor required correct settings object to reduce the need for type casting * QtProjectWizzardContentPath constructors required correct settings objects * moved SourcePaths from SourceGroupSettingsJava to SourceGroupSettingsJavaEmpty because they are not required for Gradle and Maven projects * removed classpath from maven and gradle source group settings * reuse code of SourceGroup for "show source files" in wizard
This commit is contained in:
@@ -149,11 +149,11 @@ namespace utility
|
||||
return rootDirectories;
|
||||
}
|
||||
|
||||
std::vector<FilePath> getClassPath(std::shared_ptr<const SourceGroupSettingsWithClasspath> settings, const std::set<FilePath>& sourceFilePaths)
|
||||
std::vector<FilePath> getClassPath(const std::vector<FilePath>& classpathItems, bool useJreSystemLibrary, const std::set<FilePath>& sourceFilePaths)
|
||||
{
|
||||
std::vector<FilePath> classPath;
|
||||
|
||||
for (const FilePath& classpath : settings->getClasspathExpandedAndAbsolute())
|
||||
for (const FilePath& classpath : classpathItems)
|
||||
{
|
||||
if (classpath.exists())
|
||||
{
|
||||
@@ -162,7 +162,7 @@ namespace utility
|
||||
}
|
||||
}
|
||||
|
||||
if (settings->getUseJreSystemLibrary())
|
||||
if (useJreSystemLibrary)
|
||||
{
|
||||
for (const FilePath& systemLibraryPath : ApplicationSettings::getInstance()->getJreSystemLibraryPathsExpanded())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user