[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.test-and-performance] Re: unit testing a popup menu

ok, I found it:
mypart.getControl().getMenu().setVisible(true);

Edoardo Comar wrote:
How would you test a popup menu on a workbench part?
I'd like to ensure that when a certain selection is done on my editor,
the corresponding selection-dependent actions are enabled in the editor
popup.

I open the editor and set the selection programmatically,
but I haven't found how to programmatically invoke the popup.

tia,
Edo