@FXML private void resizeMessagePane() { // Connection tabs for (final ConnectionController controller : connectionManager.getConnectionControllers()) { controller.getResizeMessageContentMenu().setSelected(resizeMessagePaneMenu.isSelected()); } // Offline (message log) tabs for (final ConnectionController controller : connectionManager.getOfflineConnectionControllers()) { controller.getResizeMessageContentMenu().setSelected(resizeMessagePaneMenu.isSelected()); } }
@FXML private void showPerspective() { if (spyPerspective.isSelected()) { selectedPerspective = MqttSpyPerspective.SPY; } else if (superSpyPerspective.isSelected()) { selectedPerspective = MqttSpyPerspective.SUPER_SPY; } else if (detailedPerspective.isSelected()) { selectedPerspective = MqttSpyPerspective.DETAILED; } else { selectedPerspective = MqttSpyPerspective.DEFAULT; } for (final ConnectionController connectionController : connectionManager.getConnectionControllers()) { showPerspective(connectionController); } logger.debug("Selected perspective = " + selectedPerspective.toString()); }