-> Testing Views' Context Menu [message #87063] |
Wed, 20 August 2003 07:47 |
Eclipse User |
|
|
|
Hi there,
I am extending some tests on ViewPart instances and I would
like to test a context menu mechanism. I extended a ViewPart
using a MenuContentProvider which provides both ContextMenues
and the action tool bar. Therefore I want to test the integration
within the view. The problem is that the context menues are rebuild
everytime the context menues are shown.
MenuListener.menuAboutToShow calls the method of the
MenuContentProvider for the type of menu it is listening for. And
then the menu content provider method composes the menu.
I just want to check if the listeners are working and calling the
right methods of the menu content provider. So I need to trigger
that event somehow.
Does anyone know a way of showing the context menues? Toolbar
isn't that big problem. It is only composed once and therefore
I can easily check it. But I need to trigger the recomposing of the
context menues (toolbar context and popup context).
Martin (Kersten)
|
|
|
Powered by
FUDForum. Page generated in 0.07780 seconds