|Selection in TableViewer [message #533011]
||Tue, 11 May 2010 16:06
| budili Missing name
Registered: May 2010
i have add a deselection function to my table viewer.
Here's the code:
public void mouseDown(final MouseEvent e)
if (viewer.getTable().getItem(new Point(e.x, e.y)) == null)
Since i have add this MouseListener to my application code,
all my testcode doesn't work. Everywhere in my testcode
who i use the method
the selection will not execute through the bot.
I have change bot.table().selection(index) in the bot.table().doubleclick method. That's works, but i think it's not fine.
What could be the problem?
|Re: Selection in TableViewer [message #533533 is a reply to message #533465]
||Fri, 14 May 2010 09:08
| Pascal G
Registered: July 2009
> ähm noo, i don't want a click ... ok, a little bit more background.
> I have a rich table viewer in my application (with a master detail etc.)
> The tests for the application code are large too.
> I have many tests who i select with the bot a row and test
> than die detail to the selected row. For this stuff i use the
> method without problems.
> But newly i have add the special listener (see above) who
> set a deselection on my tableviewer. And now all about who i use the
> bot.table().select() method, the bot does not set
> a selection on my table viewer ....
> Thats the problem ...
Hummm, that's weird... because the #select() method doesn't send a mouse
down event... I'll try to check this when I get the time. Or maybe
someone else has a better answer then mine?
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/
*Because performance matters.*
Powered by FUDForum
. Page generated in 0.07146 seconds