|
Re: ActionBar items [message #44848 is a reply to message #44816] |
Tue, 04 September 2007 06:25   |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
the code in the demo does the following in its actionbar advisor:
protected void fillCoolBar( final ICoolBarManager coolBar ) {
IToolBarManager toolbar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
coolBar.add( new ToolBarContributionItem( toolbar, "common" ) );
toolbar.add( loginAction );
toolbar.add( registerAction );
toolbar.add( helpAction );
toolbar.add( showProgramAction );
IContributionItem[] items = toolbar.getItems();
for( int i = 0; i < items.length; i++ ) {
( ( ActionContributionItem )items[ i ] ).setMode(
ActionContributionItem.MODE_FORCE_TEXT );
}
}
Hope that helps!
Ciao
Frank
"Tiago" <tiago.bugzilla@gmail.com> schrieb im Newsbeitrag
news:fbhdum$kik$1@build.eclipse.org...
> Is is possible to have actions in the ActionBar coolbar that show icon and
> text? I'm only able to show text or icon but not both at the same time.
> I've seen it on the online demo (http://rap.innoopract.com/rapdemo/rap)
> but I also haven't found the source for this.
>
> If anyone knows the solution please let me know. Thanks
>
> Tiago
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02014 seconds