Home » Eclipse Projects » Rich Client Platform (RCP) » How to hide a menu button when user switches to Navigator from Editor
|
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 04:56 |
Prakash G.R. Messages: 621 Registered: July 2009 |
Senior Member |
|
|
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: Thu Sep 19 06:19:17 GMT 2024
Powered by FUDForum. Page generated in 0.03850 seconds
|