1 19 20 package org.netbeans.modules.websvc.registry.nodes; 21 22 import org.openide.nodes.*; 23 import org.openide.util.HelpCtx; 24 import org.openide.util.NbBundle; 25 import org.openide.util.actions.SystemAction; 26 import org.openide.util.Utilities; 27 28 import com.sun.xml.rpc.processor.model.Port; 29 30 import java.awt.Image ; 31 import javax.swing.Action ; 32 33 import java.util.Iterator ; 34 import org.netbeans.modules.websvc.registry.model.WebServiceData; 35 39 public class WebServicesPortNode extends AbstractNode { 40 41 private Port port; 42 43 44 45 public WebServicesPortNode() { 46 this(null); 47 } 48 49 50 51 public WebServicesPortNode(Port inPort) { 52 super(new WebServicesPortNodeChildren(inPort)); 53 54 55 if(null == inPort) { 56 return; 57 } 58 port = inPort; 59 63 64 String portName = (String )port.getProperty(WebServiceData.PORT_PROPERTY_NAME); 65 setIconBaseWithExtension("org/netbeans/modules/websvc/registry/resources/wsport.png"); 66 setName(portName); 67 } 68 69 public Action[] getActions(boolean context) { 70 return new Action[0]; } 72 73 public HelpCtx getHelpCtx() { 74 return HelpCtx.DEFAULT_HELP; 75 } 78 79 public Port getPort() { 80 return port; 81 } 82 83 } | Popular Tags |