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

Bug 380131

Summary: MenuManager on right click doesn't work properly with 1.5M6
Product: [RT] RAP Reporter: Bianca Cojanu <cojanu_bianca>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.5   
Target Milestone: 1.5 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Bianca Cojanu CLA 2012-05-21 07:38:32 EDT
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

Hi,

I have a MenuManager on a Text field, using Rap 1.4 goes well. I migrated to Rap 1.5M6, and it seems there is a problem.
Here is the code:

=================================================

Text valueText;
Action action;
........
MenuManager menu = new MenuManager("#PopupMenu");
menu.add(action);
valueText.setMenu(menu.createContextMenu(valueText));

public void createAction() {
  action = new Action() {
    @Override
     public void run() {
	dialog = new  Dialog();
	   if (dialog.open() == IDialogConstants.OK_ID) {
............................
     }
  };
 action.setText("Insert smth");
 }
==============================================================

On Rap 1.5M6 your mouse position should be exactly on Text borders. If its position is inside the Text area, on mouse right click the menuManager wont show up.
I also tried with rap 1.5M7 and I have same problem.

Reproducible: Always

Steps to Reproduce:
1.Start application.
2.Go with the cursor of the mouse to Text field(where the menu is set)
3.If its position is inside the Text area, on mouse right click the menuManager wont show up.
4.If its position is on Text borders (where the cursor change his shape into an arrow) , on right click the Menu will appear normally.
Comment 1 Tim Buschtoens CLA 2012-05-21 10:44:20 EDT
Fixed with commit 90cbe9a0279eeff91ccafb92f24ccaf5ad1d28a8