From f27b70dd4691685d9a7dd8254e23967ea693e8ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 22 Jun 2008 16:12:47 +0200 Subject: [PATCH] make action methods private and add annotation --- src/de/todesbaum/jsite/gui/NodeManagerPage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.7.4