Home » Eclipse Projects » Rich Client Platform (RCP) » How to hide a menu button when user switches to Navigator from Editor
How to hide a menu button when user switches to Navigator from Editor [message #551176] |
Thu, 05 August 2010 10:00  |
Eclipse User |
|
|
|
Hi
I have set up a command, and a menu for that command, that displays when an
editor of a certain type is opened. This works. When I open the editor, I
see the enabled command, when I close the editor, the command disappears.
When I click away from the editor and focus on another area of the
workbench, I want the button to disappear or be disabled. This isn't
happening at the moment.
I am controlling the visibility through the visibleWhen on the menu, to an
activeEditorId.
|
|
|
Re: How to hide a menu button when user switches to Navigator from Editor [message #551335 is a reply to message #551176] |
Fri, 06 August 2010 00:56   |
Eclipse User |
|
|
|
On 05/08/10 7:30 PM, geejay wrote:
> I have set up a command, and a menu for that command, that displays when
> an editor of a certain type is opened. This works. When I open the
> editor, I see the enabled command, when I close the editor, the command
> disappears.
>
> When I click away from the editor and focus on another area of the
> workbench, I want the button to disappear or be disabled. This isn't
> happening at the moment.
>
> I am controlling the visibility through the visibleWhen on the menu, to
> an activeEditorId.
What you have done seems to be right. Please raise a bug with a sample
code to reproduce it: http://bit.ly/NewBugInPlatformUI
--
- Prakash
Platform UI Team, IBM
www.eclipse-tips.com
|
|
| | |
Goto Forum:
Current Time: Tue Jul 22 18:59:12 EDT 2025
Powered by FUDForum. Page generated in 0.03909 seconds
|