add properties with two arguments [message #881438] |
Mon, 04 June 2012 15:04 |
user Kyle Messages: 19 Registered: April 2012 |
Junior Member |
|
|
Hi,
I have a problem to add some properties to my model.
All methods with only one argument works (like setXXX(int), setYYY(int),...).
But, if I have two or more arguments it's don't work! (like setZZZ(int, int) )
If I really understand how WB work, it scan all methods and properties of my object class and add those to my componentDescription.
But, in "org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils" when this method is called:
appendPropertyComponents(Class<?> currentClass,
Set<String> newPropertyNames,
Map<String, Method> propertyToGetter,
Map<String, Method> propertyToSetter) {
I have a problem because we can add only setter with one argument!!
if (methodName.startsWith("set") && method.getParameterTypes().length == 1) {
How is it possible to add property (setter in my case) with tow arguments?
like setLocation(int, int)
Thanks for your help
[Updated on: Mon, 04 June 2012 15:12] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03397 seconds