/** Empty the interface. */ public void resetInterface() { // Empty tree objects this.treeNodeModels.clear(); this.consoles.clear(); /* * TODO : clear properly paused processes remaining when another new * injection is run. */ // GUIMediator.model().suspendables.clear(); MediatorGUI.bottomPanel().listHTTPHeader.clear(); // Tree model for refreshing the tree DefaultTreeModel treeModel = (DefaultTreeModel) MediatorGUI.databaseTree().getModel(); // The tree root DefaultMutableTreeNode root = (DefaultMutableTreeNode) treeModel.getRoot(); // Delete tabs MediatorGUI.right().removeAll(); // Remove tree nodes root.removeAllChildren(); // Refresh the root treeModel.nodeChanged(root); // Refresh the tree treeModel.reload(); MediatorGUI.databaseTree().setRootVisible(true); // Empty infos tabs MediatorGUI.bottomPanel().chunkTab.setText(""); MediatorGUI.bottomPanel().binaryTab.setText(""); ((DefaultTableModel) MediatorGUI.bottomPanel().networkTable.getModel()).setRowCount(0); MediatorGUI.bottomPanel().javaTab.getProxy().setText(""); MediatorGUI.bottomPanel().networkTabHeader.setText(""); MediatorGUI.bottomPanel().networkTabParam.setText(""); MediatorGUI.bottomPanel().networkTabResponse.setText(""); MediatorGUI.bottomPanel().networkTabTiming.setText(""); MediatorGUI.bottomPanel().networkTabSource.setText(""); MediatorGUI.bottomPanel().networkTabPreview.setText(""); for (int i = 0; i < MediatorGUI.bottom().getTabCount(); i++) { Component tabComponent = MediatorGUI.bottom().getTabComponentAt(i); if (tabComponent != null) { tabComponent.setFont(tabComponent.getFont().deriveFont(Font.PLAIN)); } } MediatorGUI.left().fileManager.setButtonEnable(false); MediatorGUI.left().shellManager.setButtonEnable(false); MediatorGUI.left().sqlShellManager.setButtonEnable(false); // Default status info MediatorGUI.status().reset(); MediatorGUI.left().fileManager.changePrivilegeIcon(HelperGUI.SQUARE_GREY); MediatorGUI.left().shellManager.changePrivilegeIcon(HelperGUI.SQUARE_GREY); MediatorGUI.left().sqlShellManager.changePrivilegeIcon(HelperGUI.SQUARE_GREY); MediatorGUI.left().uploadManager.changePrivilegeIcon(HelperGUI.SQUARE_GREY); }