Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

FAQ What is the difference between a toolbar and a cool bar?

Revision as of 16:27, 14 March 2006 by Claffra (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A cool bar is a special kind of toolbar that allows the user to reposition its items dynamically. Cool bars will also add more rows as necessary when items are added or moved. You can lock cool bars programmatically by calling CoolBar.setLocked, preventing the user from making further layout changes. The only limitation of cool bars is that, unlike ordinary toolbars, they can be oriented only horizontally. Otherwise, they are created and used just like standard toolbars. In Eclipse 3.0, JFace introduced a CoolBarManager class for helping to manage contributions to a cool bar, just as ToolBarManager is used for regular toolbars.


See Also:

FAQ_How_do_I_build_menus_and_toolbars_programmatically?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top