Data Property dialog in designer

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Data Property dialog in designer

Postby Kelly » Tue Jan 03, 2006 6:31 am

In the designer you can select the 'data' property and enter data for a widget. This converts into code like 'widget.setData("key", "value");'

The setData method can handle an object type as the second argument but through the designer you can only enter 'String' type objects, can this be changed/enhanced.

Maybe add to the right of the text field in the 'data' dialog a Combo that would translate what is in the text field into the object type selected in the Combo.

If you wanted the value to be a boolean then user could enter a valid value in the text field and then select the boolean item in the Combo. The value would be converted by the Boolean.parseBoolean method.

Just an idea thanks for listening.
Kelly
 
Posts: 38
Joined: Wed Feb 02, 2005 8:22 am

Re: Data Property dialog in designer

Postby Eric Clayberg » Tue Jan 03, 2006 8:34 pm

Kelly wrote:The setData method can handle an object type as the second argument but through the designer you can only enter 'String' type objects, can this be changed/enhanced.

At some point, yes. I don't know when though.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest