1 19 package org.netbeans.modules.websvc.jaxrpc.actions; 20 21 import java.beans.PropertyChangeEvent ; 22 import java.beans.PropertyChangeListener ; 23 import java.util.List ; 24 import org.openide.util.actions.CookieAction; 44 import org.openide.util.HelpCtx; 45 import org.openide.util.NbBundle; 46 import org.openide.nodes.Node; 47 import org.openide.DialogDisplayer; 48 import org.openide.NotifyDescriptor; 49 import java.lang.reflect.Modifier ; 50 import org.netbeans.modules.j2ee.dd.api.webservices.WebserviceDescription; 51 import org.openide.filesystems.FileObject; 52 import org.netbeans.modules.websvc.api.webservices.WebServicesSupport; 53 54 public class AddOperationAction extends CookieAction { 55 public String getName() { 57 return NbBundle.getMessage(AddOperationAction.class, "LBL_OperationAction"); 58 } 59 60 public HelpCtx getHelpCtx() { 61 return HelpCtx.DEFAULT_HELP; 62 } 65 66 protected int mode() { 67 return MODE_EXACTLY_ONE; 68 } 69 70 protected Class [] cookieClasses() { 71 return new Class [] {WebServiceClassesCookie.class}; 72 } 73 74 protected boolean asynchronous() { 75 return false; 76 } 77 78 protected boolean enable(Node[] activatedNodes) { 79 return activatedNodes.length == 1 && 80 (isJaxWsImplementationClass(activatedNodes[0]) || 84 (isWsImplBeanOrInterface(activatedNodes[0]) && !isFromWSDL(activatedNodes[0]))); 85 } 86 87 private boolean isWsImplBeanOrInterface(Node node) { 88 return false; 100 } 101 102 private boolean isJaxWsImplementationClass(Node node) { 103 return false; 123 } 124 125 private boolean isFromWSDL(Node node) { 126 return false; 140 } 141 142 protected void performAction(Node[] activatedNodes) { 143 208 } 209 } 210 | Popular Tags |