промежуточный. небольшой рефакторинг. наследие DBProjectFile от ProjectFile.
This commit is contained in:
@@ -49,14 +49,6 @@ import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
public class db_project_info extends DBObject {
|
||||
public static Vector<db_project_info> newVersions = new Vector<>();
|
||||
public static final String launch_script_name = "run";
|
||||
public static final String default_binary_name = "0";
|
||||
public static final String spf = "spf.proj";
|
||||
public static final String options = "options";
|
||||
public static final String gcov = "gcov";
|
||||
public static final String attachments = "attachments";
|
||||
public static final String statistic = "statistic";
|
||||
private static final String unknown_metric = " — ";
|
||||
//--
|
||||
public DefaultMutableTreeNode align_rules_root = new DefaultMutableTreeNode("");
|
||||
public DefaultMutableTreeNode includes_root = new DefaultMutableTreeNode("");
|
||||
@@ -264,7 +256,7 @@ public class db_project_info extends DBObject {
|
||||
Global.properties.ProjectDBName).toString());
|
||||
}
|
||||
public static String recommendAnalysis(PassCode_2021 code_in) {
|
||||
return unknown_metric + " примените анализатор \"" + code_in.getDescription() + "\"";
|
||||
return Constants.unknown_metric + " примените анализатор \"" + code_in.getDescription() + "\"";
|
||||
}
|
||||
/*
|
||||
public boolean isGCOVDone() {
|
||||
@@ -344,19 +336,19 @@ public class db_project_info extends DBObject {
|
||||
return name + " " + Utils.DQuotes(description);
|
||||
}
|
||||
public File getProjFile() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, spf).toFile();
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, Constants.spf).toFile();
|
||||
}
|
||||
public File getDataDirectory() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data).toFile();
|
||||
}
|
||||
public File getOptionsDirectory() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, options).toFile();
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, Constants.options).toFile();
|
||||
}
|
||||
public File getGCOVDirectory() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, gcov).toFile();
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, Constants.gcov).toFile();
|
||||
}
|
||||
public File getAttachmentsDirectory() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, attachments).toFile();
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, Constants.attachments).toFile();
|
||||
}
|
||||
public File getAnalyzerDirectory() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, Global.PerformanceAnalyzer).toFile();
|
||||
@@ -373,7 +365,7 @@ public class db_project_info extends DBObject {
|
||||
return res;
|
||||
}
|
||||
public File getStatisticDirectory() {
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, statistic).toFile();
|
||||
return Paths.get(Home.getAbsolutePath(), Constants.data, Constants.statistic).toFile();
|
||||
}
|
||||
public db_project_info find_version_r(File v_home) {
|
||||
if (Home.equals(v_home)) return this;
|
||||
|
||||
Reference in New Issue
Block a user