продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Common_old.UI.Trees;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common_old.Current;
|
||||
import Common.Visual.Selectable;
|
||||
|
||||
@@ -9,7 +10,7 @@ public class SelectableTree extends DataTree {
|
||||
}
|
||||
@Override
|
||||
public void LeftMouseAction1() {
|
||||
Object element = Current.get(getCurrent());
|
||||
Object element = CurrentAnchestor.get(getCurrent());
|
||||
if ((element instanceof Selectable)) {
|
||||
((Selectable) element).SwitchSelection();
|
||||
updateUI();
|
||||
|
||||
Reference in New Issue
Block a user