Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327650

Summary: No Menu Entries in Tree Popup
Product: [RT] RAP Reporter: Markus Krüger <webmaster>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P2 CC: rsternberg, tbuschto
Version: 1.4   
Target Milestone: 1.4 M3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch for the Demo to reproduce none

Description Markus Krüger CLA 2010-10-13 07:53:29 EDT
Created attachment 180756 [details]
Patch for the Demo to reproduce

I have a view that displays a tree in it (Actually it is a bit more complicated)
In a CVS checkout of 1.3 of the date 20.05.2010 everything works and the sample command is shown in the tree menu.
With 1.4 and CVS checkout of today the sample command is not shown, but it seems to be recognized as the menu stays open (usually empty menus pop up and close right away).

I attached a patch for the RAP demo. As out app is a bit complicated I copied a lot of classes to it, as a simple tree in view with menu contributions worked.
Comment 1 Tim Buschtoens CLA 2010-10-14 11:24:08 EDT
Fixed in CVS HEAD.

There were two menus (in this case one on the tree, one on the expandbar), both got opend on the client, but only one reported to the server (the empty one on the expandbar). Fixed by calling stopProppagation in the menuHandler, so only the first, correct menu (the tree one) is opend.
Comment 2 Markus Krüger CLA 2010-10-15 08:00:40 EDT
I can verify that it now works as expected.