Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Need to place a label in toolbar
Need to place a label in toolbar [message #326470] Thu, 20 March 2008 12:41 Go to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Hi,

Our plugin needs a label to displayed in the toolbar, but shouldn't be shown in the menu. i.e. like actionSet shown in menu and toolbar.

We just need to show a label in the toolbar to show status like signed in or signed out. So, we don't need to show in the menu.

Could someone please suggest how to achieve this.

Thank You,
dheer
Re: Need to place a label in toolbar [message #326615 is a reply to message #326470] Wed, 26 March 2008 14:45 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

org.eclipse.ui.menus can be used to place a Control (like a label) in a
toolbar. See the extension point description.

Of course if it's like a view, you can add your own ControlContribution
to the toolbar using getViewSite().getActionBars().getToolBarManager()

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:save an IFigure to a gif
Next Topic:Programatically evaluating expressions
Goto Forum:
  


Current Time: Sat Nov 02 19:25:23 GMT 2024

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top