Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Can a JFace Dialog have a toolbar?(I want to define a toolbar on a JFace Dialog. Is it supported?)
Can a JFace Dialog have a toolbar? [message #662340] Wed, 30 March 2011 09:54 Go to next message
Saurabh Mising name is currently offline Saurabh Mising name
Messages: 21
Registered: October 2010
Junior Member
In G. R. Prakash's blog, an example of the About Dialog in Eclipse is given.
http://blog.eclipse-tips.com/2009/02/customizing-about-dialo g.html

According to this example, defining a menu contribution in the plugin.xml with the toolbar:org.eclipse.ui.installationDialog.buttonbar as locationURI brings upt the toolbar.

If i want to define a toolbar in my JFace dialog, how can I do it?

Thanks,
Saurabh
Re: Can a JFace Dialog have a toolbar? [message #662362 is a reply to message #662340] Wed, 30 March 2011 11:35 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Read some of the links in my signature for defining the contributions etc.

You can then use
org.eclipse.ui.menus.IMenuService.populateContributionManage r(ContributionManager,
String) to populate your ToolBarManager (which actually creates the
toolbar).

Don't forget to releaseContributions(*) when the dialog is finally done.

PW

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


Previous Topic:How to restore a minimised view?
Next Topic:how to remove context menu items of a MultiPageEditor
Goto Forum:
  


Current Time: Wed Sep 24 04:48:07 GMT 2014

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

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