[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview AttributeView.java,1.2,1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-07-05 09:41:43
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8042/src/net/sourceforge/bprocessor/gui/attrview Modified Files: AttributeView.java Log Message: Use variable current to retrieve attribute info Index: AttributeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/AttributeView.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AttributeView.java 1 Jul 2005 11:26:12 -0000 1.2 --- AttributeView.java 5 Jul 2005 09:41:34 -0000 1.3 *************** *** 128,132 **** List components = new ArrayList(); ! Method[] methods = d.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method m = methods[i]; --- 128,132 ---- List components = new ArrayList(); ! Method[] methods = current.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method m = methods[i]; *************** *** 136,140 **** if (returnTypeSupported(m.getReturnType())) { try { ! components.add(new JLabel(m.invoke(d, (Object[])null).toString())); if (name.length() > 4) { names.add(new JLabel(name.substring(3, 4).toUpperCase() + name.substring(4))); --- 136,140 ---- if (returnTypeSupported(m.getReturnType())) { try { ! components.add(new JLabel(m.invoke(current, (Object[])null).toString())); if (name.length() > 4) { names.add(new JLabel(name.substring(3, 4).toUpperCase() + name.substring(4))); |