[zb4osgi-changeset] [scm] ZigBee 4 OSGi repository change: r530 - /projects/zb4osgi/trunk/zigbee.tester/src/main/java/org/persona/zigbee/tester/gui/HADeviceTreeNode.java
scm-notify at zb4osgi.aaloa.org
scm-notify at zb4osgi.aaloa.org
Fri Oct 19 16:55:56 CEST 2012
Author: stefano.lenzi
Date: Fri Oct 19 16:55:56 2012
New Revision: 530
Log:
CommandActionPanel does not display Command that starts with "get" even if are not related to an attribute ( refs #140 )
Modified:
projects/zb4osgi/trunk/zigbee.tester/src/main/java/org/persona/zigbee/tester/gui/HADeviceTreeNode.java
Modified: projects/zb4osgi/trunk/zigbee.tester/src/main/java/org/persona/zigbee/tester/gui/HADeviceTreeNode.java
==============================================================================
--- projects/zb4osgi/trunk/zigbee.tester/src/main/java/org/persona/zigbee/tester/gui/HADeviceTreeNode.java (original)
+++ projects/zb4osgi/trunk/zigbee.tester/src/main/java/org/persona/zigbee/tester/gui/HADeviceTreeNode.java Fri Oct 19 16:55:56 2012
@@ -146,9 +146,12 @@
continue;
}
String methodName = methods[i].getName();
- if ( methodName.startsWith("get") || methodName.equals("subscribe") || methodName.equals("unsubscribe") ){
+ if ( methodName.equals("subscribe") || methodName.equals("unsubscribe") ){
//We skip method that are only a way to access method available at level of attribute
continue;
+ } else if ( methodName.startsWith("get") && Attribute.class.isAssignableFrom(methods[i].getReturnType()) ) {
+ //We skip method that are only a way to access method available at level of attribute
+ continue;
} else if ( methodName.startsWith("add") || methodName.startsWith("remove") ) {
Class<?>[] args = methods[i].getParameterTypes();
if( args.length == 1 && args[0].getName().endsWith( "Listener" ) ){
More information about the Commit
mailing list