示例#1
0
  public static void addMethod(MethodsTypeTreeNode node) {
    MethodType method = new MethodType();
    method.setName("newMethod");
    MethodTypeOutput output = new MethodTypeOutput();
    output.setQName(new QName("", "void"));
    method.setOutput(output);

    MethodViewer viewer = new MethodViewer(method, node.getInfo());
    viewer.setVisible(true);

    if (!viewer.wasClosed()) {
      CommonTools.addMethod(node.getService(), method);
      ServicesJTree.getInstance().setServices(node.getInfo());
    }
  }