v++
Папка для загрузок, и пропущенный баг с настройками визуализатора.
This commit is contained in:
@@ -8,6 +8,7 @@ public class Constants {
|
||||
//--
|
||||
public static final String ComponentsDirectoryName = "Components";
|
||||
public static final String DataDirectoryName = "Data";
|
||||
public static final String DownloadsDirectoryName = "Downloads";
|
||||
public static final String BugsDirectoryName = "Bugs";
|
||||
public static final String BackUpsDirectoryName = "BackUps";
|
||||
public static final String DataBackUpsDirectoryName = "DataBackUps";
|
||||
|
||||
@@ -39,6 +39,7 @@ public class Global {
|
||||
public static File BugReportsDirectory;
|
||||
public static File BackUpsDirectory;
|
||||
public static File TempDirectory;
|
||||
public static File DownloadsDirectory;
|
||||
public static File ProjectsDirectory;
|
||||
public static File CompilationTasksDirectory;
|
||||
public static File RunTasksDirectory;
|
||||
@@ -59,6 +60,7 @@ public class Global {
|
||||
Utils_.CheckDirectory(ComponentsDirectory = new File(Utils_.getHomeDirectory(), Constants.ComponentsDirectoryName));
|
||||
Utils_.CheckAndCleanDirectory(TempDirectory = new File(Utils_.getHomeDirectory(), Constants.TempDirectoryName));
|
||||
Utils_.CheckDirectory(DataDirectory = new File(Utils_.getHomeDirectory(), Constants.DataDirectoryName));
|
||||
Utils_.CheckDirectory(DownloadsDirectory = new File(Utils_.getHomeDirectory(), Constants.DownloadsDirectoryName));
|
||||
//-
|
||||
Utils_.CheckDirectory(RepoDirectory = new File(Utils_.getHomeDirectory(), Constants.RepoDirectoryName));
|
||||
Utils_.CheckDirectory(BugReportsDirectory = new File(Utils_.getHomeDirectory(), Constants.BugsDirectoryName));
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package _VisualDVM;
|
||||
import Common.CommonConstants;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.io.File;
|
||||
public class NormalProperties extends VisualDVMProperties{
|
||||
//---
|
||||
@@ -100,4 +102,65 @@ public class NormalProperties extends VisualDVMProperties{
|
||||
public NormalProperties(File file_in){
|
||||
super(_VisualDVM.Mode.Normal, file_in);
|
||||
}
|
||||
@Override
|
||||
public String getFieldDescription(String fieldName) {
|
||||
switch (fieldName) {
|
||||
case "Kernels":
|
||||
return "Число ядер при компиляции";
|
||||
case "LocalMakePathWindows":
|
||||
return "Путь к make.exe";
|
||||
case "SmallScreen":
|
||||
return "Маленький экран";
|
||||
case "ShowFullTabsNames":
|
||||
return "Показывать полные имена вкладок";
|
||||
case "ShowFullArraysDeclarations":
|
||||
return "Показывать развернутый список объявлений массивов";
|
||||
case "LastOpenedProjectsCount":
|
||||
return "Число отображаемых последних открытых проектов";
|
||||
case "FastAccessPassesCount":
|
||||
return "Число проходов на панели быстрого доступа";
|
||||
case "Workspace":
|
||||
return "Рабочее пространство визуализатора";
|
||||
case "BugReportsAgeLimit":
|
||||
return "Срок хранения отчетов об ошибках (месяцы)";
|
||||
case "ExtensionsOn":
|
||||
return "Учитывать расширения файлов";
|
||||
case "FortranWrapsOn":
|
||||
return "Учитывать переносы";
|
||||
case "EmptyLinesOn":
|
||||
return "Учитывать пустые строки";
|
||||
case "SpacesOn":
|
||||
return "Учитывать пробелы и табуляции";
|
||||
case "RegisterOn":
|
||||
return "Учитывать регистр";
|
||||
case "ComparsionDiffMergeOn":
|
||||
return "Автоматическое сравнение";
|
||||
case "AutoBugReportsLoad":
|
||||
return "Автоматическая синхронизация отчётов об ошибках";
|
||||
case "AutoTestsLoad":
|
||||
return "Автоматическая синхронизация системы тестирования";
|
||||
case "ShowPassesDone":
|
||||
return "Сообщать об успешном выполнении проходов";
|
||||
case "ConfirmPassesStart":
|
||||
return "Запрашивать подтверждения начала выполнения проходов";
|
||||
case "FocusPassesResult":
|
||||
return "Переходить на результирующую вкладку проходов по их завершении";
|
||||
case "collapseCredentials":
|
||||
return "Свернуть раздел машин";
|
||||
case "collapseFileGraphs":
|
||||
return "Свернуть раздел графов файла";
|
||||
case "collapseFileMessages":
|
||||
return "Свернуть раздел сообщений файла";
|
||||
case "collapseProjectTrees":
|
||||
return "Свернуть раздел деревьев проекта";
|
||||
case "AutoUpdateSearch":
|
||||
return "Автоматический поиск обновлений";
|
||||
default:
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public boolean controlAction(String fieldName, JMenuItem control) {
|
||||
return (Global.mainModule.getPass(PassCode.UpdateProperty).Do(fieldName));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,8 +51,7 @@ public class DownloadProject extends CurrentConnectionPass {
|
||||
}
|
||||
@Override
|
||||
protected void performDone() throws Exception {
|
||||
File project = Paths.get(ComponentsSet.visualiser.getWorkspace().getAbsolutePath(),
|
||||
Utils_.getDateName(src.name)).toFile();
|
||||
File project = new File(Global.DownloadsDirectory, Utils_.getDateName(src.name));
|
||||
if (Global.mainModule.getPass(PassCode.UnzipFolderPass).Do(local_archive.getAbsolutePath(), project.getAbsolutePath())) {
|
||||
if (UI.Question("Проект " + Utils_.Brackets(src.name) + " успешно загружен. Открыть его"))
|
||||
Global.mainModule.getPass(PassCode.OpenCurrentProject).Do(project);
|
||||
|
||||
@@ -9,6 +9,8 @@ import _VisualDVM.Repository.Component.ComponentsSet;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
||||
import _VisualDVM.TestingSystem.Common.Test.Test;
|
||||
|
||||
import java.io.File;
|
||||
public class DownloadTest extends TestingSystemPass<Test> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
@@ -49,7 +51,7 @@ public class DownloadTest extends TestingSystemPass<Test> {
|
||||
super.performDone();
|
||||
if (Global.mainModule.getPass(PassCode.UnzipFolderPass).Do(
|
||||
target.getArchive().getAbsolutePath(),
|
||||
ComponentsSet.visualiser.getWorkspace().getAbsolutePath(), false
|
||||
Global.DownloadsDirectory.getAbsolutePath(), false
|
||||
))
|
||||
if (UI.Question("Тестовый проект успешно загружен под именем\n" +
|
||||
Utils_.Brackets(target.getHomePath().getName()) +
|
||||
|
||||
@@ -22,8 +22,8 @@ public class GetOldBugReports extends Pass<DirInfosDataSet> {
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
File workspace = ComponentsSet.visualiser.getWorkspace();
|
||||
File[] files = workspace.listFiles(pathname -> pathname.isDirectory() && pathname.getName().toLowerCase().startsWith("bugreport_"));
|
||||
File downloadsDirectory = Global.DownloadsDirectory;
|
||||
File[] files = downloadsDirectory.listFiles(pathname -> pathname.isDirectory() && pathname.getName().toLowerCase().startsWith("bugreport_"));
|
||||
if (files != null) {
|
||||
//---
|
||||
Calendar c = new GregorianCalendar();
|
||||
|
||||
@@ -25,11 +25,12 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
||||
if (Global.componentsServer.db.CheckCurrent(Log, BugReport.class) &&
|
||||
(target = Global.componentsServer.db.bugReports.getUI().getCurrent()).CheckNotDraft(Log)) {
|
||||
if (!target.project_version.isEmpty()) {
|
||||
root = Paths.get(ComponentsSet.visualiser.getWorkspace().getAbsolutePath(),
|
||||
target.id).toFile();
|
||||
project = Paths.get(root.getAbsolutePath(),
|
||||
Utils_.isWindows() ? Utils_.toW(target.project_version)
|
||||
: Utils_.toU(target.project_version)).toFile();
|
||||
root = new File(Global.DownloadsDirectory, target.id);
|
||||
|
||||
|
||||
project = new File(root,
|
||||
Utils_.isWindows() ? Utils_.toW(target.project_version) : Utils_.toU(target.project_version)
|
||||
);
|
||||
return true;
|
||||
} else {
|
||||
Log.Writeln_("Отчёт об ошибке не содержит прикреплённого проекта!");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.MainModule_;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Windows.Dialog.SliderNumberForm;
|
||||
import Common.Visual.Windows.Dialog.SpinnerNumberForm;
|
||||
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
||||
@@ -28,6 +29,7 @@ public class UpdateProperty extends Pass<Object> {
|
||||
VDirectoryChooser directoryChooser = new VDirectoryChooser("");
|
||||
VFileChooser fileChooser = new VFileChooser("", "exe");
|
||||
//-
|
||||
System.out.println(Utils_.Brackets(name));
|
||||
if (args.length==1){
|
||||
if (oldValue instanceof Boolean){
|
||||
newValue=!(Boolean)oldValue;
|
||||
|
||||
@@ -36,7 +36,7 @@ public abstract class OpenSapforVersionPass extends Pass<SapforVersion_json> {
|
||||
protected void body() throws Exception {
|
||||
SapforTask task = target.task;
|
||||
ShowMessage1("Построение дерева версий и создание баз данных...");
|
||||
File rootHome = new File(ComponentsSet.visualiser.getWorkspace(), Utils_.getDateName(task.test_description));
|
||||
File rootHome = new File(Global.DownloadsDirectory, Utils_.getDateName(task.test_description));
|
||||
|
||||
for (SapforVersion_json version_json : task.versions) {
|
||||
ShowMessage2(version_json.version);
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Visualiser extends Component {
|
||||
//http://www.seostella.com/ru/article/2012/02/05/formatirovanie-daty-v-java.html
|
||||
@Override
|
||||
public void GetVersionInfo() {
|
||||
version = 1137;
|
||||
version = 1138;
|
||||
String pattern = "MMM dd yyyy HH:mm:ss";
|
||||
DateFormat df = new SimpleDateFormat(pattern, Locale.ENGLISH);
|
||||
date_text = df.format(getClassBuildTime());
|
||||
|
||||
@@ -65,7 +65,7 @@ public class Test extends riDBObject {
|
||||
return new File(Global.TestsDirectory, String.valueOf(id));
|
||||
}
|
||||
public File getHomePath() {
|
||||
return new File(ComponentsSet.visualiser.getWorkspace(), String.valueOf(id));
|
||||
return new File(Global.DownloadsDirectory, String.valueOf(id));
|
||||
}
|
||||
//--
|
||||
public File getTempArchive() {
|
||||
|
||||
Reference in New Issue
Block a user