Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add dynamically the shortcut sequence to the tooltip text of a button ?
How to add dynamically the shortcut sequence to the tooltip text of a button ? [message #544741] Mon, 05 July 2010 12:00 Go to next message
Laurent Barbareau is currently offline Laurent Barbareau
Messages: 10
Registered: July 2009
Location: Aix en Provence - France
Junior Member
Hello,

I develop a RCP application based on E 3.4 platform and I haven't found how to add the shortcut sequence to the tooltip text of a button (in the toolbar).

Of course, I could add the sequence manually to the tooltip text but I'd like the shortcut stay synchronized with the user config of the shortcut list.

Is it an Eclipse package to add to the application or a parameter to set somewhere ?

Thank you in advance for your help.
Re: How to add dynamically the shortcut sequence to the tooltip text of a button ? [message #545756 is a reply to message #544741] Thu, 08 July 2010 23:50 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Laurent,

The IBindingService is registered during workbench startup. This looks like
just the class you need.

PlatformUI.getWorkbench.getService(ibindingservice)

Best regards,

Wim Jongman


> Hello,
>
> I develop a RCP application based on E 3.4 platform and I haven't found how
to add the shortcut sequence to the tooltip text of a button (in the
toolbar).
>
> Of course, I could add the sequence manually to the tooltip text but I'd
like the shortcut stay synchronized with the user config of the shortcut
list.
>
> Is it an Eclipse package to add to the application or a parameter to set
somewhere ?
>
> Thank you in advance for your help.
Re: How to add dynamically the shortcut sequence to the tooltip text of a button ? [message #546115 is a reply to message #545756] Sun, 11 July 2010 08:59 Go to previous message
Laurent Barbareau is currently offline Laurent Barbareau
Messages: 10
Registered: July 2009
Location: Aix en Provence - France
Junior Member
Wim Jongman wrote on Fri, 09 July 2010 01:50
The IBindingService is registered during workbench startup. This looks like just the class you need.

PlatformUI.getWorkbench.getService(ibindingservice)
Thank you.

I'm not really aware about those components, but I wanna search in that way Wink
Previous Topic:add a RCP gui to an existing Equinox/OSGi environment
Next Topic:EFS - CMIS based implementation
Goto Forum:
  


Current Time: Thu Sep 18 14:00:19 GMT 2014

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

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