Bug 48326 - [Contributions] updating: Need hooks to control enablement of global menu items
Summary: [Contributions] updating: Need hooks to control enablement of global menu items
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, performance
Depends on:
Blocks:
 
Reported: 2003-12-09 04:46 EST by Dirk Baeumer CLA
Modified: 2019-09-06 16:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2003-12-09 04:46:32 EST
Currently, all refactoring actions are enabled when the Java editor has focus. 
This is the case, since the Java editor doesn't sent out selection changes for 
all cursor changes (doing so would highly impact typing). Those are only 
reported by post selection changes.

We have several requests that only those refactoring actions should be enabled 
which are applicable to the current selection. I add support for this to the 
context menu by computing the enablement state when the pop-up menu becomes 
visible. I would like to add the same support to the global refactoring menu. 
To do so I need a hook when:

- the user presses a short cut
- the refactoring menu opens
- the refactoring menu closes

Can those hooks be provided ?
Comment 1 Tod Creasey CLA 2003-12-15 13:49:20 EST
Chris do you think your commands support handles this or is it unrelated? If 
not then move this back to me...
Comment 2 Michael Van Meekeren CLA 2006-04-21 13:56:42 EDT
Moving Dougs bugs
Comment 3 Markus Keller CLA 2007-03-01 10:10:21 EST
See also bug 151604.
Comment 4 Paul Webster CLA 2007-04-05 19:02:49 EDT
Assigning to component owner
PW
Comment 5 Paul Webster CLA 2009-03-02 11:39:14 EST
Updated as per http://wiki.eclipse.org/Platform_UI/Bug_Triage
PW
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:07:54 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.