Getting variable name at runtime

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

Getting variable name at runtime

Postby Sebastien » Thu Jul 21, 2005 4:48 am

Hello,
My post might be a little off topic but I’ll give it a try anyway.

I use Composite’s getChildren() method to get all the SWT controls locate on a Composite. To identify them, I tried toString() and getClass().getName() but all Text widget give me “Textâ€
Sebastien
Sebastien
 
Posts: 16
Joined: Thu Jun 02, 2005 12:18 pm
Location: Canada

Re: Getting variable name at runtime

Postby Eric Clayberg » Thu Jul 21, 2005 5:58 am

[quote="Sebastien"]I use Composite’s getChildren() method to get all the SWT controls locate on a Composite. To identify them, I tried toString() and getClass().getName() but all Text widget give me “Textâ€
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

Postby Sebastien » Thu Jul 21, 2005 6:07 am

Thank you, it should help :-)
Sebastien
Sebastien
 
Posts: 16
Joined: Thu Jun 02, 2005 12:18 pm
Location: Canada


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest