|Re: clicking context menu steals selection [message #759416 is a reply to message #758186]
||Mon, 28 November 2011 15:42
| Ketan Padegaonkar
Registered: July 2009
I'm unable to reproduce this behavior. The contextMenu implementation of
treeItem (http://goo.gl/5gcS0) seems to be setting the selection on the
treeitem and sending events to the tree.
If this is always reproducible, would it be possible for you to share
the full trace level log output(http://goo.gl/5CXcM) of swtbot when this
On 11/22/11 1:43 AM, Jacek Pospychala wrote:
> I'm trying to simulate user selecting a file in PHP Explorer and
> choosing "Run As -> PHPUnit Test" from context menu. Basically user
> expands the project in the explorer view, clicks on file, chooses option
> from context menu and runs it.
> I did the following:
> tree.expandNode("projectName") // expand project node in explorer
> select("calculatorTest.php") // select test file to run
> contextMenu("Run As") // click "Run As"
> Now at this point I'd like to click submenu item, but my tree selection
> suddenly changes from "calculatorTest.php" to top level element. So I
> have to keep reference to RunAs menu, then again call:
> and then get the submenu and click it.
> So my question is, if that's the expected behavior with tree selection
> getting changed during contextMenu() call,
> or am I doing it wrong way?
> btw. for getting the submenu item I'm using this:
Powered by FUDForum
. Page generated in 0.01701 seconds