From: David ‘Bombe’ Roden Date: Sun, 22 Jun 2008 14:12:47 +0000 (+0200) Subject: make action methods private and add annotation X-Git-Tag: 0.4.12.1~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f27b70dd4691685d9a7dd8254e23967ea693e8ac;p=jSite.git make action methods private and add annotation --- diff --git a/src/de/todesbaum/jsite/gui/NodeManagerPage.java b/src/de/todesbaum/jsite/gui/NodeManagerPage.java index 9418b67..1fa8937 100644 --- a/src/de/todesbaum/jsite/gui/NodeManagerPage.java +++ b/src/de/todesbaum/jsite/gui/NodeManagerPage.java @@ -107,6 +107,7 @@ public class NodeManagerPage extends TWizardPage implements ListSelectionListene private void createActions() { addNodeAction = new AbstractAction(I18n.getMessage("jsite.node-manager.add-node")) { + @SuppressWarnings("synthetic-access") public void actionPerformed(ActionEvent actionEvent) { addNode(); } @@ -114,6 +115,7 @@ public class NodeManagerPage extends TWizardPage implements ListSelectionListene deleteNodeAction = new AbstractAction(I18n.getMessage("jsite.node-manager.delete-node")) { + @SuppressWarnings("synthetic-access") public void actionPerformed(ActionEvent actionEvent) { deleteNode(); } @@ -251,14 +253,14 @@ public class NodeManagerPage extends TWizardPage implements ListSelectionListene // ACTIONS // - protected void addNode() { + private void addNode() { Node node = new Node("localhost", 9481, I18n.getMessage("jsite.node-manager.new-node")); nodeListModel.addElement(node); wizard.setNextEnabled(true); fireNodesUpdated(getNodes()); } - protected void deleteNode() { + private void deleteNode() { Node node = getSelectedNode(); if (node == null) { return;