All widgets have the setData method available on it. So it would be  
possible to set this value on MenuItems and ToolItems.

You are correct about setting widget IDs for contributions in eclipse.  
The MenuManager and other ContributionItems contain #fill() methods  
that are invoked on them. You could do something there, if need be.

Asking this question on the eclipse.platform.rcp newsgroup may get you  
a better answer.

-- Ketan

On 23-Oct-08, at 4:43 PM, Hans Schwaebli wrote:

> How can the IDs for the buttons on a toolbar be set and for the Menu  
> widgets?
>
> In the application there are toolbar and menubar managers on which  
> actions are added. So the widget is not there but somehow created  
> internally when constructing the UI. A ID can be set to an action,  
> but I think it has nothing to do with Widget#setData(...)
>
> I probably won't use getting widgets by ID, but I wonder how this  
> could be done for widgets of type Menu and for Button widgets in a  
> toolbar.
>
> This is of course more a SWT question than a SWTBot question.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to