Bug 152597 - Need “Undo” action for cutomized property descriptor
Summary: Need “Undo” action for cutomized property descriptor
Status: RESOLVED DUPLICATE of bug 6276
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 10:14 EDT by Sameh Ayoub CLA
Modified: 2006-08-02 11:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sameh Ayoub CLA 2006-08-02 10:14:49 EDT
I created my own property descriptor. This has a TextCellEditor. I did that to add my menu item to the context menu of the text editor of the property descriptor.

In Windows XP, the method Control.getMenu() return null if you didn’t set the menu before which is the default. But there is a context menu that shows up in the edit control from the OS. This menu has Undo, cut, copy... menu items. 

In my case I wanted to add my menu item to this context menu. The only way that I know of is to create a menu and call setMenu() method. Once you do that the OS menu disappears and my new menu shows up. This leads to loosing the undo functionality in the edit control.

I need a way to add my menu items to the OS menu.

If you need more information, please contact Sameh Ayoub 
There is a defect open for the same issue RATLC00546213,
Comment 1 Steve Northover CLA 2006-08-02 11:09:37 EDT
There is no way I know to get the standard edit menu from Windows.  I'm going to mark this as a duplicate as a request for undo API for the text control.

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