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 nameFriend
Messages: 21
Registered: October 2010
Junior Member
In G. R. Prakash's blog, an example of the About Dialog in Eclipse is given. 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?

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 WebsterFriend
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

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


Paul Webster 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: Mon Oct 05 13:07:57 GMT 2015

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

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