Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Tooltip from toolbar command contributions
Tooltip from toolbar command contributions [message #656125] Thu, 24 February 2011 10:06 Go to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
Dear platform gurus,

I'm quite happy after having refactoring my code for working with command.

Bye bye actions.

I have created lots of command with the names and descriptions.

I would like that in the tooltip of a command contribution in a toolbar to appear the description (longer) instead of the name (normally short).

Thanks for yor recommendations.

David
Re: Tooltip from toolbar command contributions [message #656182 is a reply to message #656125] Thu, 24 February 2011 13:21 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I think in commands it defaults to the name, see
org.eclipse.ui.menus.CommandContributionItem.updateToolItem( )

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Tooltip from toolbar command contributions [message #657300 is a reply to message #656182] Wed, 02 March 2011 11:15 Go to previous messageGo to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
Thanks Paul. Razz

I've already patched my copy of org.eclipse.ui.workbench
I think that the default behaviour shoud be:

- Description of the command
- Or the name of the command if the previous one unavailable

If necessary I can submit a patch.
Re: Tooltip from toolbar command contributions [message #657359 is a reply to message #657300] Wed, 02 March 2011 14:34 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 03/02/2011 06:15 AM, David Pérez wrote:
> Thanks Paul. :p
> I've already patched my copy of org.eclipse.ui.workbench
> I think that the default behaviour shoud be:
>
> - Description of the command
> - Or the name of the command if the previous one unavailable
>
> If necessary I can submit a patch.

Patches welcome ... if you can do it this week, I'll consider it for 3.7
M6 (next week :-)

http://wiki.eclipse.org/Platform_UI/How_to_Contribute

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Tooltip from toolbar command contributions [message #660194 is a reply to message #657359] Thu, 17 March 2011 10:03 Go to previous messageGo to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
As promised, I have patched the HEAD version of the repository.
Sorry, I don't know how to make patches with CVS.

Paul Webster wrote on Wed, 02 March 2011 09:34
On 03/02/2011 06:15 AM, David Pérez wrote:
> Thanks Paul. Razz
> I've already patched my copy of org.eclipse.ui.workbench
> I think that the default behaviour shoud be:
>
> - Description of the command
> - Or the name of the command if the previous one unavailable
>
> If necessary I can submit a patch.

Patches welcome ... if you can do it this week, I'll consider it for 3.7
M6 (next week Smile

http://wiki.eclipse.org/Platform_UI/How_to_Contribute

Re: Tooltip from toolbar command contributions [message #660195 is a reply to message #660194] Thu, 17 March 2011 10:04 Go to previous messageGo to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
I realized now that I don't know either how to attach a file in the forum.
Should I report a bug?

David Pérez wrote on Thu, 17 March 2011 06:03
As promised, I have patched the HEAD version of the repository.
Sorry, I don't know how to make patches with CVS.

Paul Webster wrote on Wed, 02 March 2011 09:34
On 03/02/2011 06:15 AM, David Pérez wrote:
> Thanks Paul. Razz
> I've already patched my copy of org.eclipse.ui.workbench
> I think that the default behaviour shoud be:
>
> - Description of the command
> - Or the name of the command if the previous one unavailable
>
> If necessary I can submit a patch.

Patches welcome ... if you can do it this week, I'll consider it for 3.7
M6 (next week Smile

http://wiki.eclipse.org/Platform_UI/How_to_Contribute



Re: Tooltip from toolbar command contributions [message #660208 is a reply to message #660195] Thu, 17 March 2011 11:20 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 03/17/2011 06:04 AM, David Pérez wrote:
> I realized now that I don't know either how to attach a file in the forum.
> Should I report a bug?

Yes please. You can use this link:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Tooltip from toolbar command contributions [message #660275 is a reply to message #660208] Thu, 17 March 2011 16:07 Go to previous message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
Here is the bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=340342

Paul Webster wrote on Thu, 17 March 2011 07:20
On 03/17/2011 06:04 AM, David Pérez wrote:
> I realized now that I don't know either how to attach a file in the forum.
> Should I report a bug?

Yes please. You can use this link:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI


Previous Topic:template proposals (ctrl+space)
Next Topic:How to use Intro
Goto Forum:
  


Current Time: Fri Apr 19 08:33:39 GMT 2024

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

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

Back to the top