|
|
|
Re: Find controls when GMF context menu is displayed [message #981400 is a reply to message #981384] |
Mon, 12 November 2012 06:30   |
Eclipse User |
|
|
|
On 11/12/2012 12:18 PM, Ralph Gerbig wrote:
> My problem is that I cannot click on such a context menu button because
> SWTBot finder does not seem to find any widget while this dialog is
> open. Is there a way to locate the bug a bit closer when I want to open
> a bug report?
I'm not sure what you mean by contextMenu then... contextMenu does not
have button nor widgets, they have menus instead (contextMenu are menu
displayed with right-click).
In case of context menu as "right-clicks", then when a contextMenu is
open you cannot perform any other operation since it has the focus. When
you right-click on something, it sends a right-click event that opens
the contextMenu. When you perform any other UI operation, the
contextMenu is generally first closed and then your event is processed
normally. Maybe in your case, you need to explicitly close the menu...
In case you're speaking about widgets on a draw2d diagram, then SWTBot
does not support them. SWTBot APIs don't have draw2d concepts.
However, you can perform some mouse move and click operations on a
draw2d diagram.
I don't understand what you mean by "locate the bug a bit closer".
Cheers
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
|
|
|
|
Re: Find controls when GMF context menu is displayed [message #987588 is a reply to message #987585] |
Tue, 27 November 2012 04:35  |
Eclipse User |
|
|
|
Hi Mickael,
it is very close. The problem in the bug the context menu is opened by using a palette tool. In my case it is opened by using the connection handles which are displayed when hovering over an edit part. I assume that when solving one of the to problems we get the second problem solved for free.
Ralph
|
|
|
Powered by
FUDForum. Page generated in 0.03684 seconds