Bug 297193 - [Contributions] [Trim Area] Toolbar does not disappear when all its items are disabled and should only be visibleWhen enabled
Summary: [Contributions] [Trim Area] Toolbar does not disappear when all its items are...
Status: CLOSED DUPLICATE of bug 201589
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Eric Moffatt CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 08:02 EST by Philipp Kursawe CLA
Modified: 2009-12-15 09:43 EST (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 Philipp Kursawe CLA 2009-12-08 08:02:25 EST
Given this XML fragment:

<menuContribution
            locationURI="toolbar:org.eclipse.ui.trim.status">
         <toolbar
               id="sample.toolbar">
            <command
                  commandId="sample.ShowCommSettings"
                  id="sample.statusbutton"
                  style="pulldown">
               <visibleWhen
                     checkEnabled="false">
               </visibleWhen>
            </command>
         </toolbar>         
      </menuContribution>

It seems that even when the command is not enabled the toolbar is still visible. I would suspect it to disappear, since there are no more items to display.
Comment 1 Eric Moffatt CLA 2009-12-15 09:43:18 EST
Phillip, I've already started working on a fix for this...

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