1 19 package org.netbeans.modules.j2ee.sun.bridge.apis; 20 21 import javax.swing.Action ; 22 import org.openide.actions.PropertiesAction; 23 import org.openide.nodes.Children; 24 import org.openide.util.actions.SystemAction; 25 26 31 public abstract class AppserverMgmtLeafNode extends AppserverMgmtActiveNode { 32 33 38 public AppserverMgmtLeafNode(String nodeType) { 39 super(Children.LEAF, nodeType); 40 } 41 42 47 public AppserverMgmtLeafNode(Controller controller, String nodeType) { 48 super(Children.LEAF, controller, nodeType); 49 } 50 51 52 57 public AppserverMgmtLeafNode(final AppserverMgmtController controller, 58 final String nodeType) { 59 super(Children.LEAF, controller, nodeType); 60 } 61 62 63 70 public Action [] getActions(boolean flag) { 71 return new SystemAction[] { 72 SystemAction.get(PropertiesAction.class) 73 }; 74 } 75 76 80 public javax.swing.Action getPreferredAction(){ 81 return SystemAction.get(PropertiesAction.class); 82 } 83 } 84 | Popular Tags |