* Added new Source Group type SourceGroupCustomCommand to UI and ProjectSettings * The Source Group executes a specified command on every source file * The variables $SOURCE_PATH, $PROJECT_PATH, $DB_PATH, $STORAGE_VERSION can be passed * The commands are executed after all other source groups finished indexing * The command is executed with working directory set to project directory * Errors during command execution are shown as status update and in the Status View * SourceGroupCustomCommand cannot be partially cleared, when one file needs clearing the project must be fully re-indexed
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#ifndef SOURCE_GROUP_SETTINGS_WITH_JAVA_STANDARD_H
|
|
#define SOURCE_GROUP_SETTINGS_WITH_JAVA_STANDARD_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "SourceGroupSettingsBase.h"
|
|
|
|
class ConfigManager;
|
|
|
|
class SourceGroupSettingsWithJavaStandard
|
|
: virtual public SourceGroupSettingsBase
|
|
{
|
|
public:
|
|
static std::wstring getDefaultJavaStandardStatic();
|
|
|
|
SourceGroupSettingsWithJavaStandard() = default;
|
|
virtual ~SourceGroupSettingsWithJavaStandard() = default;
|
|
|
|
bool equals(std::shared_ptr<SourceGroupSettingsWithJavaStandard> other) const;
|
|
|
|
std::wstring getJavaStandard() const;
|
|
void setJavaStandard(const std::wstring& standard);
|
|
|
|
std::vector<std::wstring> getAvailableJavaStandards() const;
|
|
|
|
protected:
|
|
void load(std::shared_ptr<const ConfigManager> config, const std::string& key);
|
|
void save(std::shared_ptr<ConfigManager> config, const std::string& key);
|
|
|
|
private:
|
|
std::wstring getDefaultJavaStandard() const;
|
|
|
|
std::wstring m_javaStandard;
|
|
};
|
|
|
|
#endif // SOURCE_GROUP_SETTINGS_WITH_JAVA_STANDARD_H
|