no message

This commit is contained in:
2024-10-17 20:31:06 +03:00
parent 3b5bffe998
commit 7b56eae371
13 changed files with 24 additions and 38 deletions

View File

@@ -17,13 +17,13 @@ public class FileGraphTree extends DataTree {
return GraphTreeCellRenderer.class;
}
@Override
public Current getCurrent() {
public Current currentName() {
return Current.FileGraphElement;
}
@Override
public void ShowCurrentObject() throws Exception {
Global.mainModule.getFile().form.EventsOff();
Object o = Global.mainModule.get(getCurrent());
Object o = Global.mainModule.get(currentName());
Global.mainModule.getFile().form.getEditor().gotoLine((o instanceof FileObjectWithMessages) ? (((FileObjectWithMessages) o).line) : 1);
Global.mainModule.getFile().form.ShowMessages();
Global.mainModule.getFile().form.EventsOn();

View File

@@ -34,7 +34,7 @@ public class VersionsTree extends DataTree {
return RendererProjectVersion.class;
}
@Override
public Current getCurrent() {
public Current currentName() {
return Current.Version;
}
public void SelectCurrentProject() {
@@ -48,7 +48,7 @@ public class VersionsTree extends DataTree {
public void LeftMouseAction1() {
if (Global.versions_multiselection) {
// только если есть режим выбора версий.
Object element = Global.mainModule.get(getCurrent());
Object element = Global.mainModule.get(currentName());
if ((element instanceof Selectable)) {
((Selectable) element).SwitchSelection();
updateUI();

View File

@@ -14,12 +14,12 @@ public class InlineTree extends SelectableTree {
return SelectionTreeCellRenderer.class;
}
@Override
public Current getCurrent() {
public Current currentName() {
return Current.InlineGraphElement;
}
@Override
public void ShowCurrentObject() {
Object o = Global.mainModule.get(getCurrent());
Object o = Global.mainModule.get(currentName());
if (o instanceof FileObject) {
((FileObject) o).Show(false);
}

View File

@@ -14,7 +14,7 @@ public class InlineTree2 extends SelectableTree {
return SelectionTreeCellRenderer.class;
}
@Override
public Current getCurrent() {
public Current currentName() {
return Current.InlineGraphElement2;
}
@Override
@@ -23,7 +23,7 @@ public class InlineTree2 extends SelectableTree {
}
@Override
public void ShowCurrentObject() {
Object o = Global.mainModule.get(getCurrent());
Object o = Global.mainModule.get(currentName());
if (o instanceof FileObject) {
((FileObject) o).Show(false);
}

View File

@@ -9,7 +9,7 @@ public class IncludesTree extends SelectableTree {
super(Global.mainModule.getProject().includes_root);
}
@Override
public Current getCurrent() {
public Current currentName() {
return Current.IncludeGraphElement;
}
@Override