private static MethodDescriptor[] getMdescriptor(){ MethodDescriptor[] methods = new MethodDescriptor[2]; try { methods[METHOD_equals0] = new MethodDescriptor(nl.cloudfarming.client.model.FieldPlan.class.getMethod("equals", new Class[] {java.lang.Object.class})); // NOI18N methods[METHOD_equals0].setDisplayName ( "" ); methods[METHOD_hashCode1] = new MethodDescriptor(nl.cloudfarming.client.model.FieldPlan.class.getMethod("hashCode", new Class[] {})); // NOI18N methods[METHOD_hashCode1].setDisplayName ( "" ); } catch( Exception e) {}//GEN-HEADEREND:Methods // Here you can add code for customizing the methods array. return methods; }//GEN-LAST:Methods private static java.awt.Image iconColor16 = null;//GEN-BEGIN:IconsDef
private static MethodDescriptor[] getMdescriptor(){ MethodDescriptor[] methods = new MethodDescriptor[5]; try { methods[METHOD_addUndoableEditListener0] = new MethodDescriptor(nl.cloudfarming.client.model.Bean.class.getMethod("addUndoableEditListener", new Class[] {org.openide.awt.UndoRedo.Manager.class})); // NOI18N methods[METHOD_addUndoableEditListener0].setDisplayName ( "" ); methods[METHOD_equals1] = new MethodDescriptor(nl.cloudfarming.client.model.Task.class.getMethod("equals", new Class[] {java.lang.Object.class})); // NOI18N methods[METHOD_equals1].setDisplayName ( "" ); methods[METHOD_fireUndoableEvent2] = new MethodDescriptor(nl.cloudfarming.client.model.Bean.class.getMethod("fireUndoableEvent", new Class[] {java.lang.String.class, nl.cloudfarming.client.model.Bean.class, java.lang.Object.class, java.lang.Object.class})); // NOI18N methods[METHOD_fireUndoableEvent2].setDisplayName ( "" ); methods[METHOD_hashCode3] = new MethodDescriptor(nl.cloudfarming.client.model.Task.class.getMethod("hashCode", new Class[] {})); // NOI18N methods[METHOD_hashCode3].setDisplayName ( "" ); methods[METHOD_removeUndoableEditListener4] = new MethodDescriptor(nl.cloudfarming.client.model.Bean.class.getMethod("removeUndoableEditListener", new Class[] {org.openide.awt.UndoRedo.Manager.class})); // NOI18N methods[METHOD_removeUndoableEditListener4].setDisplayName ( "" ); } catch( Exception e) {}//GEN-HEADEREND:Methods // Here you can add code for customizing the methods array. return methods; }//GEN-LAST:Methods
private static MethodDescriptor[] getMdescriptor(){ MethodDescriptor[] methods = new MethodDescriptor[4]; try { methods[METHOD_addObject0] = new MethodDescriptor(nl.cloudfarming.client.geoviewer.ObjectLayer.class.getMethod("addObject", new Class[] {nl.cloudfarming.client.geoviewer.LayerObject.class})); // NOI18N methods[METHOD_addObject0].setDisplayName ( "" ); methods[METHOD_addObjects1] = new MethodDescriptor(nl.cloudfarming.client.geoviewer.ObjectLayer.class.getMethod("addObjects", new Class[] {java.util.List.class})); // NOI18N methods[METHOD_addObjects1].setDisplayName ( "" ); methods[METHOD_clearObjects2] = new MethodDescriptor(nl.cloudfarming.client.geoviewer.ObjectLayer.class.getMethod("clearObjects", new Class[] {})); // NOI18N methods[METHOD_clearObjects2].setDisplayName ( "" ); methods[METHOD_removeObject3] = new MethodDescriptor(nl.cloudfarming.client.geoviewer.ObjectLayer.class.getMethod("removeObject", new Class[] {nl.cloudfarming.client.geoviewer.LayerObject.class})); // NOI18N methods[METHOD_removeObject3].setDisplayName ( "" ); } catch( Exception e) {}//GEN-HEADEREND:Methods // Here you can add code for customizing the methods array. return methods; }//GEN-LAST:Methods
private static MethodDescriptor[] getMdescriptor(){ MethodDescriptor[] methods = new MethodDescriptor[5]; try { methods[METHOD_addUndoableEditListener0] = new MethodDescriptor(nl.cloudfarming.client.model.Bean.class.getMethod("addUndoableEditListener", new Class[] {org.openide.awt.UndoRedo.Manager.class})); // NOI18N methods[METHOD_addUndoableEditListener0].setDisplayName ( "" ); methods[METHOD_equals1] = new MethodDescriptor(nl.cloudfarming.client.model.ProductionUnit.class.getMethod("equals", new Class[] {java.lang.Object.class})); // NOI18N methods[METHOD_equals1].setDisplayName ( "" ); methods[METHOD_fireUndoableEvent2] = new MethodDescriptor(nl.cloudfarming.client.model.Bean.class.getMethod("fireUndoableEvent", new Class[] {java.lang.String.class, nl.cloudfarming.client.model.Bean.class, java.lang.Object.class, java.lang.Object.class})); // NOI18N methods[METHOD_fireUndoableEvent2].setDisplayName ( "" ); methods[METHOD_hashCode3] = new MethodDescriptor(nl.cloudfarming.client.model.ProductionUnit.class.getMethod("hashCode", new Class[] {})); // NOI18N methods[METHOD_hashCode3].setDisplayName ( "" ); methods[METHOD_removeUndoableEditListener4] = new MethodDescriptor(nl.cloudfarming.client.model.Bean.class.getMethod("removeUndoableEditListener", new Class[] {org.openide.awt.UndoRedo.Manager.class})); // NOI18N methods[METHOD_removeUndoableEditListener4].setDisplayName ( "" ); } catch( Exception e) {}//GEN-HEADEREND:Methods // Here you can add code for customizing the methods array. return methods; }//GEN-LAST:Methods private static java.awt.Image iconColor16 = null;//GEN-BEGIN:IconsDef
static EventDescriptor newBoundEventDescriptor(String name, Method m) { MethodDescriptor md = new MethodDescriptor(m); md.setName(name); md.setDisplayName(name + "#{}"); //md.setShortDescription(); return new EventDescriptor(null, md); }
new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addAttribute", new Class[] { java.lang.String.class, java.lang.Object.class})); // NOI18N methods[METHOD_addAttribute0].setDisplayName(""); methods[METHOD_addAttribute1] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addAttribute", new Class[] { java.lang.String.class, int.class, java.lang.Object.class})); // NOI18N methods[METHOD_addAttribute1].setDisplayName(""); methods[METHOD_addChild2] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addChild", new Class[] { java.lang.String.class, com.google.protobuf.Message.class})); // NOI18N methods[METHOD_addChild2].setDisplayName(""); methods[METHOD_addChild3] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addChild", new Class[] {java.lang.String.class})); // NOI18N methods[METHOD_addChild3].setDisplayName(""); methods[METHOD_addChild4] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addChild", new Class[] { java.lang.String.class, int.class, com.google.protobuf.Message.class})); // NOI18N methods[METHOD_addChild4].setDisplayName(""); methods[METHOD_addChild5] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addChild", new Class[] { java.lang.String.class, int.class})); // NOI18N methods[METHOD_addChild5].setDisplayName(""); methods[METHOD_build6] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("build", new Class[] {})); // NOI18N methods[METHOD_build6].setDisplayName(""); methods[METHOD_buildPartial7] = new MethodDescriptor(DynamicMessage.Builder.class.getMethod("buildPartial", new Class[] {})); // NOI18N
methods[METHOD_action0].setDisplayName ( "" ); methods[METHOD_add1] = new MethodDescriptor(java.awt.Component.class.getMethod("add", new Class[] {java.awt.PopupMenu.class})); // NOI18N methods[METHOD_add1].setDisplayName ( "" ); methods[METHOD_add2] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] {java.lang.String.class, java.awt.Component.class})); // NOI18N methods[METHOD_add2].setDisplayName ( "" ); methods[METHOD_add3] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] {java.awt.Component.class, int.class})); // NOI18N methods[METHOD_add3].setDisplayName ( "" ); methods[METHOD_add4] = new MethodDescriptor(java.awt.Container.class.getMethod("add", new Class[] {java.awt.Component.class, java.lang.Object.class, int.class})); // NOI18N methods[METHOD_add4].setDisplayName ( "" ); methods[METHOD_add5] = new MethodDescriptor(nl.cloudfarming.client.util.swing.ASBodyPanel.class.getMethod("add", new Class[] {java.awt.Component.class})); // NOI18N methods[METHOD_add5].setDisplayName ( "" ); methods[METHOD_add6] = new MethodDescriptor(nl.cloudfarming.client.util.swing.ASBodyPanel.class.getMethod("add", new Class[] {java.awt.Component.class, java.lang.Object.class})); // NOI18N methods[METHOD_add6].setDisplayName ( "" ); methods[METHOD_addNotify7] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("addNotify", new Class[] {})); // NOI18N methods[METHOD_addNotify7].setDisplayName ( "" ); methods[METHOD_addPropertyChangeListener8] = new MethodDescriptor(java.awt.Container.class.getMethod("addPropertyChangeListener", new Class[] {java.lang.String.class, java.beans.PropertyChangeListener.class})); // NOI18N methods[METHOD_addPropertyChangeListener8].setDisplayName ( "" ); methods[METHOD_applyComponentOrientation9] = new MethodDescriptor(java.awt.Container.class.getMethod("applyComponentOrientation", new Class[] {java.awt.ComponentOrientation.class})); // NOI18N methods[METHOD_applyComponentOrientation9].setDisplayName ( "" ); methods[METHOD_areFocusTraversalKeysSet10] = new MethodDescriptor(java.awt.Container.class.getMethod("areFocusTraversalKeysSet", new Class[] {int.class})); // NOI18N methods[METHOD_areFocusTraversalKeysSet10].setDisplayName ( "" ); methods[METHOD_bounds11] = new MethodDescriptor(java.awt.Component.class.getMethod("bounds", new Class[] {})); // NOI18N methods[METHOD_bounds11].setDisplayName ( "" ); methods[METHOD_checkImage12] = new MethodDescriptor(java.awt.Component.class.getMethod("checkImage", new Class[] {java.awt.Image.class, java.awt.image.ImageObserver.class})); // NOI18N methods[METHOD_checkImage12].setDisplayName ( "" ); methods[METHOD_checkImage13] = new MethodDescriptor(java.awt.Component.class.getMethod("checkImage", new Class[] {java.awt.Image.class, int.class, int.class, java.awt.image.ImageObserver.class})); // NOI18N methods[METHOD_checkImage13].setDisplayName ( "" ); methods[METHOD_computeVisibleRect14] = new MethodDescriptor(javax.swing.JComponent.class.getMethod("computeVisibleRect", new Class[] {java.awt.Rectangle.class})); // NOI18N methods[METHOD_computeVisibleRect14].setDisplayName ( "" );
static EventDescriptor newDescriptor(EventSetDescriptor esd) { MethodDescriptor md = new MethodDescriptor(esd.getListenerMethods()[0]); md.setName(esd.getName()); md.setDisplayName(esd.getDisplayName()); md.setShortDescription(esd.getShortDescription()); return new EventDescriptor(esd, md); }