forked from phoedos/pmd
@@ -53,10 +53,10 @@ public class Designer extends Application {
|
||||
DesignerRoot owner = new DesignerRoot(stage);
|
||||
MainDesignerController mainController = new MainDesignerController(owner);
|
||||
|
||||
NodeInfoPanelController nodeInfoPanelController = new NodeInfoPanelController(owner, mainController);
|
||||
NodeInfoPanelController nodeInfoPanelController = new NodeInfoPanelController(mainController);
|
||||
XPathPanelController xpathPanelController = new XPathPanelController(owner, mainController);
|
||||
SourceEditorController sourceEditorController = new SourceEditorController(owner, mainController);
|
||||
EventLogController eventLogController = new EventLogController(owner, mainController);
|
||||
EventLogController eventLogController = new EventLogController(owner);
|
||||
|
||||
loader.setControllerFactory(type -> {
|
||||
if (type == MainDesignerController.class) {
|
||||
|
@@ -31,7 +31,6 @@ import javafx.scene.control.cell.PropertyValueFactory;
|
||||
public class EventLogController implements Initializable {
|
||||
|
||||
private final DesignerRoot designerRoot;
|
||||
private final MainDesignerController parent;
|
||||
|
||||
@FXML
|
||||
private TableView<LogEntry> eventLogTableView;
|
||||
@@ -45,9 +44,8 @@ public class EventLogController implements Initializable {
|
||||
private TextArea logDetailsTextArea;
|
||||
|
||||
|
||||
public EventLogController(DesignerRoot owner, MainDesignerController mainController) {
|
||||
public EventLogController(DesignerRoot owner) {
|
||||
this.designerRoot = owner;
|
||||
parent = mainController;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -66,6 +66,7 @@ import javafx.util.Duration;
|
||||
* @see XPathPanelController
|
||||
* @since 6.0.0
|
||||
*/
|
||||
@SuppressWarnings("PMD.UnusedPrivateField")
|
||||
public class MainDesignerController implements Initializable, SettingsOwner {
|
||||
|
||||
/**
|
||||
|
@@ -39,9 +39,9 @@ import javafx.scene.control.TreeView;
|
||||
* @author Clément Fournier
|
||||
* @since 6.0.0
|
||||
*/
|
||||
@SuppressWarnings("PMD.UnusedPrivateField")
|
||||
public class NodeInfoPanelController implements Initializable {
|
||||
|
||||
private final DesignerRoot designerRoot;
|
||||
private final MainDesignerController parent;
|
||||
|
||||
@FXML
|
||||
@@ -61,8 +61,7 @@ public class NodeInfoPanelController implements Initializable {
|
||||
private MetricEvaluator metricEvaluator = new MetricEvaluator();
|
||||
|
||||
|
||||
public NodeInfoPanelController(DesignerRoot root, MainDesignerController mainController) {
|
||||
this.designerRoot = root;
|
||||
public NodeInfoPanelController(MainDesignerController mainController) {
|
||||
parent = mainController;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user