рефакторинг контролов таблиц. убрал странный и запутанный старый код

This commit is contained in:
2024-10-17 20:04:16 +03:00
parent 01d366e256
commit 66fa638ec4
55 changed files with 241 additions and 212 deletions

View File

@@ -76,6 +76,11 @@ public class FileForm implements FileWindow, FormWithSplitters {
MessageNote.filterValue = "";
//-
file = file_in;
//--
loopsForm = new TreeForm(FileLoopsTree.class, loopsGraphPanel);
functionsForm = new TreeForm(FileFunctionsTree.class, functionsGraphPanel);
arraysForm = new TreeForm(FileArraysTree.class, arraysGraphPanel);
//--
file.father.db.notes.mountUI(notesPanel);
file.father.db.warnings.mountUI(warningsPanel);
file.father.db.errors.mountUI(errorsPanel);
@@ -332,7 +337,7 @@ public class FileForm implements FileWindow, FormWithSplitters {
}
@Override
public void ShowFirstError() {
if (file.father.db.errors.ui_.control.getRowCount() > 0)
if (file.father.db.errors.ui_.getRowCount() > 0)
file.father.db.errors.ui_.control.SelectRow(0);
}
@Override
@@ -351,12 +356,6 @@ public class FileForm implements FileWindow, FormWithSplitters {
public void ShowNoRunOutput() {
runOutput.setText("");
}
private void createUIComponents() {
// TODO: place custom component creation code here
loopsGraphPanel = (loopsForm = new TreeForm(FileLoopsTree.class)).getContent();
functionsGraphPanel = (functionsForm = new TreeForm(FileFunctionsTree.class)).getContent();
arraysGraphPanel = (arraysForm = new TreeForm(FileArraysTree.class)).getContent();
}
@Override
public JPanel getContent() {
return content;