v++
Папка для загрузок, и пропущенный баг с настройками визуализатора.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user