Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ActionBar items
ActionBar items [message #44816] Mon, 03 September 2007 16:48 Go to next message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
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 06: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 08:57 Go to previous message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
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 Apr 25 16:54:25 GMT 2024

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

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

Back to the top