no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Common.Visual;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
|
||||
import java.awt.*;
|
||||
public class ControlWithCurrentForm<C extends Component> extends ControlForm<C> {
|
||||
@@ -7,7 +7,7 @@ public class ControlWithCurrentForm<C extends Component> extends ControlForm<C>
|
||||
super(class_in);
|
||||
}
|
||||
//-
|
||||
public CurrentAnchestor CurrentName() {
|
||||
public Current_ CurrentName() {
|
||||
return null;
|
||||
}
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package Common.Visual;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
public interface DataControl_OLD {
|
||||
//todo скорее всего устареет.
|
||||
default CurrentAnchestor getCurrent() {
|
||||
default Current_ getCurrent() {
|
||||
return null;
|
||||
}
|
||||
//-?
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Common.Visual;
|
||||
import Common.CommonConstants;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Tables.DBTable;
|
||||
@@ -60,7 +60,7 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
|
||||
return dataSource;
|
||||
}
|
||||
@Override
|
||||
public CurrentAnchestor CurrentName() {
|
||||
public Current_ CurrentName() {
|
||||
return getDataSource().CurrentName();
|
||||
}
|
||||
public void SaveColumns() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package Common.Visual.Menus;
|
||||
import Common.Database.Tables.DataSet;
|
||||
import Common.Visual.Controls.MenuBarButton;
|
||||
import _VisualDVM.Visual.Menus.VisualiserMenuBar;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -15,7 +15,7 @@ public class DataMenuBar extends VisualiserMenuBar {
|
||||
public ActionListener selectAllListener = null;
|
||||
public ActionListener unselectAllListener = null;
|
||||
//-
|
||||
public DataMenuBar(String dataName, PassCode_2021... passes) {
|
||||
public DataMenuBar(String dataName, PassCode... passes) {
|
||||
// Font font = Current.getTheme().Fonts.get(VisualiserFonts.TreeBoldItalic).deriveFont(12.0F);
|
||||
add(new JLabel(dataName + " : "));
|
||||
add(countLabel = new JLabel("?"));
|
||||
|
||||
@@ -4,7 +4,7 @@ import _VisualDVM.ServerObjectsCache.VisualCaches;
|
||||
import _VisualDVM.TestingSystem.Common.Configuration.Configuration;
|
||||
import _VisualDVM.TestingSystem.Common.TestingServer;
|
||||
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.SapforConfiguration;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
import Visual_DVM_2021.Passes.Pass;
|
||||
import Visual_DVM_2021.Passes.Server.EditServerObject;
|
||||
public class ConfigurationAutoSwitcher extends DBObjectEditor<Configuration> {
|
||||
@Override
|
||||
@@ -12,7 +12,7 @@ public class ConfigurationAutoSwitcher extends DBObjectEditor<Configuration> {
|
||||
value.SwitchAuto();
|
||||
setIcon(value.GetAutoIcon());
|
||||
///-
|
||||
Pass_2021 pass = new EditServerObject<TestingServer,Configuration> (Global.testingServer, Configuration.class){
|
||||
Pass pass = new EditServerObject<TestingServer,Configuration> (Global.testingServer, Configuration.class){
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = (Configuration) args[0];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Common.Visual.Trees;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.DataControl_OLD;
|
||||
|
||||
@@ -11,7 +11,7 @@ public class DataTree extends StyledTree implements DataControl_OLD {
|
||||
}
|
||||
public void ChangeCurrentObject(DefaultMutableTreeNode node) {
|
||||
if (getCurrent() != null)
|
||||
CurrentAnchestor.set(getCurrent(), node.getUserObject());
|
||||
Current_.set(getCurrent(), node.getUserObject());
|
||||
}
|
||||
@Override
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Common.Visual.Trees;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import Common.Visual.Selectable;
|
||||
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
@@ -9,7 +9,7 @@ public class SelectableTree extends DataTree {
|
||||
}
|
||||
@Override
|
||||
public void LeftMouseAction1() {
|
||||
Object element = CurrentAnchestor.get(getCurrent());
|
||||
Object element = Current_.get(getCurrent());
|
||||
if ((element instanceof Selectable)) {
|
||||
((Selectable) element).SwitchSelection();
|
||||
updateUI();
|
||||
|
||||
Reference in New Issue
Block a user