public CheckedTreeNode append(CheckedTreeNode node) { final TreeDescriptor descriptor = getDescriptor(node); if (!(descriptor instanceof MethodDescriptor)) { return node; } final MethodDescriptor methodDescriptor = (MethodDescriptor) descriptor; final String packageName = methodDescriptor.getPackageName(); return attachNodeToParent(new PackageDescriptor(packageName), node); }
public CheckedTreeNode append(CheckedTreeNode node) { if (!myGroupByClasses) { return node; } final TreeDescriptor descriptor = getDescriptor(node); if (!(descriptor instanceof MethodDescriptor)) { return node; } final MethodDescriptor methodDescriptor = (MethodDescriptor) descriptor; final String className = methodDescriptor.getClassName(); final String packageName = methodDescriptor.getPackageName(); return attachNodeToParent(new ClassDescriptor(className, packageName), node); }
// ***** ***** public MethodDescriptor[] getMethodDescriptors() { try { MethodDescriptor md1 = new MethodDescriptor( getMethod( com.ibm.HostPublisher.IntegrationObject.HPubCommon.class, "processRequest")); String procReqDesc = res.getString("procReqDesc"); md1.setShortDescription(procReqDesc); MethodDescriptor md2 = new MethodDescriptor( getMethod( com.ibm.HostPublisher.IntegrationObject.HPubCommon.class, "doHPTransaction")); String doHPTransDesc = res.getString("doHPTransDesc"); md2.setShortDescription(doHPTransDesc); // method for receiving event MethodDescriptor md3 = new MethodDescriptor( getMethod( com.ibm.HostPublisher.IntegrationObject.HPubCommon.class, "hPubStartPerformed")); String hPubStartPerfDesc = res.getString("hPubStartPerfDesc"); md3.setShortDescription(hPubStartPerfDesc); MethodDescriptor[] arrayOfMDs = {md1, md2, md3}; return arrayOfMDs; } catch (IntrospectionException e) { e.printStackTrace(); } return null; }