[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Where are getName() and setName(...) ?

Yes that's the appropiate thing to restore user data in SWT. Use setData(String,Object) because setData() is sometimes used by frameworks like JFace to restore information.

Tom

Hans Schwaebli schrieb:
In Swing you can set a name for each GUI component and then get it. This is valuable for automated GUI tests.

But what is the equivalent in SWT? I didn't find a name attribute there.

Maybe the getData(...) and setData(...) methods of the Widget class could be used for this? Or is this not the proper way?



--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------