private void createActions() {
addNodeAction = new AbstractAction(I18n.getMessage("jsite.node-manager.add-node")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
addNode();
}
deleteNodeAction = new AbstractAction(I18n.getMessage("jsite.node-manager.delete-node")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
deleteNode();
}
// 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;