рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -449,8 +449,8 @@ public class Message extends FileObject {
|
||||
}
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
if (Current.HasFile() && Current.getFile().name.equals(file)) {
|
||||
Object o = Current_.get(Current.FileGraphElement);
|
||||
if (Global.mainModule.HasFile() && Global.mainModule.getFile().name.equals(file)) {
|
||||
Object o =Global.mainModule.get(Current.FileGraphElement);
|
||||
return !(o instanceof FileObjectWithMessages) || ((FileObjectWithMessages) o).HasMessage(this);
|
||||
} else return false;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import Common.Database.Tables.iDBTable;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import Common.Visual.Tables.ColumnFilter;
|
||||
import Common.Visual.Tables.TableRenderers;
|
||||
import _VisualDVM.Global;
|
||||
|
||||
import javax.swing.table.TableModel;
|
||||
import javax.swing.table.TableRowSorter;
|
||||
@@ -23,7 +24,7 @@ public class MessagesDBTable<M extends Message> extends iDBTable<M> {
|
||||
@Override
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
super.ShowCurrentObject();
|
||||
Current.getFile().form.getEditor().gotoLine(getCurrent().line);
|
||||
Global.mainModule.getFile().form.getEditor().gotoLine(getCurrent().line);
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
|
||||
Reference in New Issue
Block a user