Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 143162

Summary: [Actions] Allow to set MODE_FORCE_TEXT in Action
Product: [Eclipse Project] Platform Reporter: Benjamin Pasero <bpasero>
Component: UIAssignee: Paul Webster <pwebster>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P5 CC: 0001rajesh, aschmid, cvogt, mlists, sr
Version: 3.2Keywords: helpwanted
Target Milestone: 3.4 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Force mode in actions and commands v01 none

Description Benjamin Pasero CLA 2006-05-23 04:50:55 EDT
I would like to let my Action-Contributions appear as Toolitems with Image and Text in a CoolBar. I know that there is ActionContributionItem.MODE_FORCE_TEXT, but thats only working if I was adding my actions programmatically as ActionContributionItems.

MODE_FORCE_TEXT should be a selectable option of an Action.

Ben
Comment 1 Benjamin Pasero CLA 2006-05-23 04:52:21 EDT
"MODE_FORCE_TEXT should be a selectable option of an Action"

is better to read as

"MODE_FORCE_TEXT should be a selectable option of an Action being declared in the plugin.xml"

Ben
Comment 2 Paul Webster CLA 2006-09-28 15:17:58 EDT
Is this still a problem in 3.3?

PW
Comment 3 Benjamin Pasero CLA 2006-09-28 15:59:52 EDT
Yes, nothing changed (3.3 M2).

Ben
Comment 4 Paul Webster CLA 2006-09-28 19:58:42 EDT
With the work in bug 154130 I hope to never see an action again ... this might be left behind.

PW
Comment 5 Benjamin Pasero CLA 2006-09-29 03:55:13 EDT
Right. Once that bug is fixed it would be great if it was possible to do anything SWT allows to do with Toolbars/Menus in an extendable way via extension points / contributions.

Ben
Comment 6 Benjamin Pasero CLA 2007-04-23 04:50:36 EDT
Any update on this?
Comment 7 Paul Webster CLA 2007-04-23 07:05:46 EDT
This didn't make it in, and we're in API freeze.

PW
Comment 8 Andreas Schmid CLA 2007-05-01 05:17:24 EDT
(In reply to comment #7)
> This didn't make it in, and we're in API freeze.
> 
> PW
> 

Will it be in M7 ? Would be great.

Comment 9 Paul Webster CLA 2007-05-01 06:10:59 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > This didn't make it in, and we're in API freeze.
> 
> Will it be in M7 ? Would be great.
> 

Sorry, API freeze means not in 3.3
PW
Comment 10 Paul Webster CLA 2007-06-22 06:49:00 EDT
If this was available it would have to be included in org.eclipse.ui.menus/command as well
PW
Comment 11 Paul Webster CLA 2008-02-26 15:07:21 EST
This will cover a way to mark commands in org.eclipse.ui.menus to use both text and an icon

PW
Comment 12 Paul Webster CLA 2008-03-11 09:57:24 EDT
If someone would like to contribute a patch for this we can get it into M6:

- the action element in org.eclipse.ui.actionSets, org.eclipse.ui.editorActions, and org.eclipse.ui.viewActions needs to be updated ... and the information probably stored in the IActionDescriptor
- All the contributors that create/build PluginActions for views,editors, and actionSets need to set the option on the PluginActionContributionItem (ALT+CTRL+H on the constructor will show them).
- it has to be added to the command element in org.eclipse.ui.menus
- It has to be added/set on CommandContributionItem, probably from MenuAdditionCacheEntry

PW
Comment 13 Paul Webster CLA 2008-03-12 13:15:26 EDT
*** Bug 220082 has been marked as a duplicate of this bug. ***
Comment 14 Paul Webster CLA 2008-03-20 10:04:27 EDT
I need at least the action portion of this by early Monday if this is to make it into 3.4

PW
Comment 15 Paul Webster CLA 2008-03-24 20:09:33 EDT
Created attachment 93338 [details]
Force mode in actions and commands v01

Adds a mode attribute to action elements and the command element
PW
Comment 16 Paul Webster CLA 2008-03-24 20:10:41 EDT
Released to HEAD >20080324
PW
Comment 17 Benjamin Pasero CLA 2008-03-25 04:07:28 EDT
Thanks Paul. Make sure to ask me for some beers next EclipseCon. Well deserved :).
Comment 18 Paul Webster CLA 2008-03-25 10:33:26 EDT
In I20080325-0100
PW