отображение файлов вывода (парса и преобразования)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package SapforTestingSystem.Json;
|
||||
import Common.Constants;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import ProjectData.Files.FileType;
|
||||
@@ -37,7 +38,7 @@ public class SapforVersion_json implements Serializable {
|
||||
//--
|
||||
File[] files_ = Home.listFiles();
|
||||
if (files_ != null) {
|
||||
for (File file: files_){
|
||||
for (File file : files_) {
|
||||
if (file.isFile()) {
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
if (!projectFile.fileType.equals(FileType.forbidden)) {
|
||||
@@ -46,5 +47,19 @@ public class SapforVersion_json implements Serializable {
|
||||
}
|
||||
}
|
||||
}
|
||||
//теперь файлы вывода.
|
||||
Vector<File> out_files = new Vector<>();
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_out_file).toFile());
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.parse_err_file).toFile());
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.out_file).toFile());
|
||||
out_files.add(Paths.get(Home.getAbsolutePath(), Constants.data, Constants.err_file).toFile());
|
||||
//--
|
||||
for (File file : out_files) {
|
||||
if (file.exists()) {
|
||||
// System.out.println(file.getAbsolutePath());
|
||||
ProjectFile projectFile = new ProjectFile(file);
|
||||
files.add(projectFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,6 @@ public class SapforTasksPackageTree extends DataTree {
|
||||
public SapforTasksPackageTree(DefaultMutableTreeNode root_in, Current current_in) {
|
||||
super(root_in);
|
||||
current = current_in;
|
||||
// setRootVisible(false);
|
||||
// CollapseAll();
|
||||
}
|
||||
@Override
|
||||
protected int getStartLine() {
|
||||
@@ -27,21 +25,11 @@ public class SapforTasksPackageTree extends DataTree {
|
||||
}
|
||||
@Override
|
||||
public void SelectionAction(TreePath e) {
|
||||
// System.out.println("Select " + current);
|
||||
DefaultMutableTreeNode node = (DefaultMutableTreeNode) e.getLastPathComponent();
|
||||
// Current.set(Current.ProjectNode, node);
|
||||
Object o = node.getUserObject();
|
||||
if (o instanceof SapforVersion_json) {
|
||||
SapforVersion_json version = (SapforVersion_json) o;
|
||||
Current.set(current, version);
|
||||
|
||||
/*
|
||||
System.out.println(version.version+" files: "+version.files.size());
|
||||
for (ProjectFile file: version.files){
|
||||
System.out.println(Utils.Brackets(file));
|
||||
}
|
||||
System.out.println("---");
|
||||
*/
|
||||
if (current.equals(Current.SapforEtalonVersion))
|
||||
UI.getMainWindow().getTestingWindow().ShowCurrentSapforPackageVersionEtalon();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user