продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package Common_old.UI.Trees;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import Common_old.UI.DataControl_OLD;
|
||||
import Common.Visual.DataControl_OLD;
|
||||
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
import javax.swing.tree.TreePath;
|
||||
@@ -10,8 +11,8 @@ public class DataTree extends StyledTree implements DataControl_OLD {
|
||||
super(root_in);
|
||||
}
|
||||
public void ChangeCurrentObject(DefaultMutableTreeNode node) {
|
||||
if (getCurrent() != Current.Undefined)
|
||||
Current.set(getCurrent(), node.getUserObject());
|
||||
if (getCurrent() != null)
|
||||
CurrentAnchestor.set(getCurrent(), node.getUserObject());
|
||||
}
|
||||
@Override
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user