рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -10,6 +10,7 @@ import Common.Utils.TextLog;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.FilterInterface;
|
||||
import _VisualDVM.Global;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -244,19 +245,19 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
||||
return null;
|
||||
}
|
||||
public boolean CheckCurrent(TextLog log) {
|
||||
return Current_.Check(log, CurrentName());
|
||||
return Global.mainModule.Check(log, CurrentName());
|
||||
}
|
||||
public boolean hasCurrent() {
|
||||
return Current_.get(CurrentName()) != null;
|
||||
return Global.mainModule.get(CurrentName()) != null;
|
||||
}
|
||||
public void dropCurrent() {
|
||||
Current_.set(CurrentName(), null);
|
||||
Global.mainModule.set(CurrentName(), null);
|
||||
}
|
||||
public D getCurrent() {
|
||||
return (D) Current_.get(CurrentName());
|
||||
return (D) Global.mainModule.get(CurrentName());
|
||||
}
|
||||
public void setCurrent(D o) {
|
||||
Current_.set(CurrentName(), o);
|
||||
Global.mainModule.set(CurrentName(), o);
|
||||
}
|
||||
public Vector<D> getCheckedOrCurrent() {
|
||||
Vector<D> res = new Vector<>();
|
||||
|
||||
Reference in New Issue
Block a user