|editor actions that do not disable? [message #296878]
||Tue, 03 January 2006 22:40
| Damian Biollo
Registered: July 2009
I was wondering if there is any know good way to make editor actions
(org.eclipse.ui.editorActions) which do not automatically disable when a
view part is activated?
The idea is that I want to add a document-specific menu to the top-level
menu. This menu should only appear when the active editor is of the right
type (which is why I'm using the editorAction extension). However, when a
view, such as Outline or Navigator is activated, I still want all of the
document menu items to be enabled. Currently, the Eclipse implementation is
to always disable menu actions when the editor is deactivated ... I'd rather
that it disable the menu only if getActiveEdtor() returns null.
Any suggestions are welcome!
Powered by FUDForum
. Page generated in 0.01924 seconds