+ Node selectedNode = (Node) node;
+ if (core.isNodeConnected(selectedNode)) {
+ int response = JOptionPane.showConfirmDialog(this, I18n.get("manageNodesDialog.error.nodeConnected.message", selectedNode.getName()), I18n.get("manageNodesDialog.error.nodeConnected.title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);
+ if (response == JOptionPane.CANCEL_OPTION) {
+ break;
+ } else if (response == JOptionPane.NO_OPTION) {
+ continue;
+ }
+ }
+ nodeListModel.removeNode(selectedNode);