Bug 39082

Summary: Use SWT.MenuDetect for showing popup menu
Product: [Eclipse Project] Platform Reporter: Simon Arsenault <simon_arsenault>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Simon Arsenault CLA 2003-06-18 13:59:41 EDT
So that the popup menu is displayed properly on all platforms, we need to use 
the MenuDetect listener instead of a MouseListener and testing for button == 3.

Please see bug 28658 for more details. Also, see bug 39081 open against SWT - 
the x and y values of the MouseEvent are relative to the control, but the x & y 
values of the Event (MenuDetect listener) are relative to the screen. I'm 
asking SWT to make them relative to the control.

The only place I found in the Text component that needs updating is 
CompositeRulerCanvas (in its constructor, it adds a mouse listener to show a 
popup menu when button == 3).
Comment 1 Andre Weinand CLA 2003-06-19 03:50:39 EDT

*** This bug has been marked as a duplicate of 32688 ***