Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ActionBar items
ActionBar items [message #44816] Mon, 03 September 2007 12:48 Go to next message
Eclipse UserFriend
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
Re: ActionBar items [message #44848 is a reply to message #44816] Tue, 04 September 2007 02:25 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: ActionBar items [message #45331 is a reply to message #44848] Wed, 05 September 2007 04:57 Go to previous message
Eclipse UserFriend
Worked perfect. Thanks.

Tiago

"Frank Appel" <fappel@innoopract.com> wrote in message
news:fbitoq$i3q$1@build.eclipse.org...
> 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
>>
>
>
Previous Topic:perspective bar location
Next Topic:OLE Support?
Goto Forum:
  


Current Time: Thu May 15 22:28:45 EDT 2025

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

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

Back to the top