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

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

@@ -102,13 +102,13 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
}
private void createUIComponents() {
// TODO: place custom component creation code here
filesForm = new TreeForm(FilesTree.class);
filesForm = new TreeForm(FilesTree.class, new JPanel(new BorderLayout()));
projectDescription = new Viewer();
logText = new Viewer();
logScroll = new JScrollPane(logText);
includesForm = new TreeForm(IncludesTree.class);
inlineForm = new TreeForm(InlineTree.class);
inlineForm2 = new TreeForm(InlineTree2.class);
includesForm = new TreeForm(IncludesTree.class, new JPanel(new BorderLayout()));
inlineForm = new TreeForm(InlineTree.class, new JPanel(new BorderLayout()));
inlineForm2 = new TreeForm(InlineTree2.class, new JPanel(new BorderLayout()));
}
@Override
public void RefreshProjectFiles() {
@@ -262,16 +262,16 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
menuBar.getProjectViewMenu().setIcon(Utils_.getIcon(view.getIcon()));
switch (view) {
case Files:
projectViewPanel.add(filesForm.getContent());
projectViewPanel.add(filesForm.getMountPanel());
break;
case Includes:
projectViewPanel.add(includesForm.getContent());
projectViewPanel.add(includesForm.getMountPanel());
break;
case FunctionsHierarchy:
projectViewPanel.add(inlineForm2.getContent());
projectViewPanel.add(inlineForm2.getMountPanel());
break;
case FunctionsCallsPoints:
projectViewPanel.add(inlineForm.getContent());
projectViewPanel.add(inlineForm.getMountPanel());
break;
}
projectViewPanel.revalidate();