Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » -> Testing Views' Context Menu
-> Testing Views' Context Menu [message #87063] Wed, 20 August 2003 07:47
Eclipse UserFriend
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)
Previous Topic:Hot to use exclusion filters
Next Topic:Any good UML case tools suggest?
Goto Forum:
  


Current Time: Tue Jun 10 17:27:39 EDT 2025

Powered by FUDForum. Page generated in 0.02665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top