Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » add properties with two arguments
add properties with two arguments [message #881438] Mon, 04 June 2012 15:04 Go to next message
user Kyle is currently offline user KyleFriend
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 Wink

[Updated on: Mon, 04 June 2012 15:12]

Report message to a moderator

Re: add properties with two arguments [message #882303 is a reply to message #881438] Wed, 06 June 2012 08:11 Go to previous message
user Kyle is currently offline user KyleFriend
Messages: 19
Registered: April 2012
Junior Member
It's ok, I have to create new supports with my own properties and and properties editor. Smile
Previous Topic:CodeMaps updates for WindowBuilder
Next Topic:XWT XML Schema
Goto Forum:
  


Current Time: Thu Mar 28 15:45:02 GMT 2024

Powered by FUDForum. Page generated in 0.03397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top