Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Testing: Widget Id on Toolbars
Testing: Widget Id on Toolbars [message #898762] Fri, 27 July 2012 13:25 Go to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi I am currently evaluating a new product (QFS Test) for running tests on my RAP application. I wonder if there's a hack to set the rwt.widget id on something contributed like view toolbars or similar stuff.

any ideas will be appreciated Smile as always.
Re: Testing: Widget Id on Toolbars [message #898798 is a reply to message #898762] Fri, 27 July 2012 16:26 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Thomas,

can't you use ContributionManagers and ContriutionItems to find out
which widget represents which action/command/etc?
For example, the ToolBarManager from the views actionBars should have
the necessary information.
Alternatively you could iterate over the widget hierarchy of the shell
that represents workbench window. JFaces stores the ContributionItem in
Widget#setData().
RWT has a WidgetTreeVisitor to aid iterating over the widget tree (be
cautious, it is internal)

Regards,
Rüdiger

On 27.07.2012 15:25, Thomas Kratz wrote:
> Hi I am currently evaluating a new product (QFS Test) for running tests
> on my RAP application. I wonder if there's a hack to set the rwt.widget
> id on something contributed like view toolbars or similar stuff.
>
> any ideas will be appreciated :) as always.
--
Rüdiger Herrmann
http://codeaffine.com
Re: Testing: Widget Id on Toolbars [message #898854 is a reply to message #898798] Sat, 28 July 2012 05:27 Go to previous messageGo to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi Rüdiger,

I am looking for the most generic way to get this running. Had a look into ToolBar/ContributionManager but I could not see where the widget#setdata is implemented. I think I would be fine to hook in there for testing. Can you give me a pointer where I can find this?

Thx!

Thomas

[Updated on: Sat, 28 July 2012 05:28]

Report message to a moderator

Re: Testing: Widget Id on Toolbars [message #898867 is a reply to message #898854] Sat, 28 July 2012 12:51 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Thomas,

not sure if this is what you are actually looking for. Anyway, in
ToolBarManager, line 359 the widget data is set.

HTH
Rüdiger

On 28.07.2012 07:27, Thomas Kratz wrote:
> Hi Rüdiger,
>
> I am looking for the most generic way to get this running. Had a look
> into ToolBar/ContributionManager but I could see where the
> widget#setdata is implemented. I think I would be fine to hook in there
> for testing. Can you give me a pointer where I can find this?
>
> Thx!
>
> Thomas--
Re: Testing: Widget Id on Toolbars [message #898970 is a reply to message #898867] Sun, 29 July 2012 17:18 Go to previous message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Thx Rüdiger,
I filed an enhancement proposal for this.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=386202
Previous Topic:Buckminster / WAR product
Next Topic:From RWT to full RAP on Virgo
Goto Forum:
  


Current Time: Thu Apr 25 19:18:38 GMT 2024

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

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

Back to the top