Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Adding a button to show preferences dialog in toolbar
Adding a button to show preferences dialog in toolbar [message #513189] Tue, 09 February 2010 05:09 Go to next message
Petr Osipov is currently offline Petr Osipov
Messages: 4
Registered: February 2010
Junior Member
Hey

I have a question. I am now making the preference pages for our company's SWT-based tool, and I have a trouble - the tool has no menu, only a toolbar. I however only found a way to bind the call to the org.eclipse.ui.window.preferences command in a menu, while I would need to build it into a ToolBar programatically. Does anyone have a code snippet how to add a toolbar button with this command?

Cheers
Petr Osipov



Re: Adding a button to show preferences dialog in toolbar [message #513623 is a reply to message #513189] Wed, 10 February 2010 12:23 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
The eclipse.platform newsgroup would probably be a better place for this
question.

Grant


"Petr Osipov" <peter@ossipov.net> wrote in message
news:hkrc87$14b$1@build.eclipse.org...
> Hey
>
> I have a question. I am now making the preference pages for our company's
SWT-based tool, and I have a trouble - the tool has no menu, only a toolbar.
I however only found a way to bind the call to the
org.eclipse.ui.window.preferences command in a menu, while I would need to
build it into a ToolBar programatically. Does anyone have a code snippet how
to add a toolbar button with this command?
>
> Cheers
> Petr Osipov
>
>
>
>
Previous Topic:Set focus problem in editor
Next Topic:SWT.PASSWORD and enter key on Mac
Goto Forum:
  


Current Time: Fri Aug 22 05:54:49 EDT 2014

Powered by FUDForum. Page generated in 0.01921 seconds