Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to put icon on application's title bar ?
How to put icon on application's title bar ? [message #53918] Mon, 22 October 2007 07:04 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

I can't find any way to put icon on application's title bar, is it really
doable at the moment ?

Best Regards,

Setya
Re: How to put icon on application's title bar ? [message #54287 is a reply to message #53918] Mon, 22 October 2007 16:16 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi,

in a regular RCP application you would use the branding (don't mix this
with RAP branding functions).
As this is not yet possible with RAP you can use the following snippet:

IWorkbenchWindow window = ...
window.getShell().setImage( ... )

Greets
Benny

Setya wrote:
> Hi,
>
> I can't find any way to put icon on application's title bar, is it
> really doable at the moment ?
>
> Best Regards,
>
> Setya
>
Re: How to put icon on application's title bar ? [message #54394 is a reply to message #54287] Tue, 23 October 2007 03:52 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Benjamin Muskalla wrote:

> IWorkbenchWindow window = ...
> window.getShell().setImage( ... )

Ah, I didn't see it, sorry. Thank you for your information.

Is it going to be implemented through RAP branding ext. point in the
future ?

Regards,

Setya
Re: How to put icon on application's title bar ? [message #55003 is a reply to message #54394] Wed, 24 October 2007 09:25 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

>> IWorkbenchWindow window = ...
>> window.getShell().setImage( ... )

I put the following on WorkbenchWindowAdvisor:

public void postWindowCreate()
{
Shell shell = getWindowConfigurer().getWindow().getShell();

shell.setImage(CorePlugin.getInstance().getImage(Constants.A PP_IMAGE));
shell.setMaximized(true);
}

But the icon won't show up. Any ideas ?

Regards,

Setya
Re: How to put icon on application's title bar ? [message #55027 is a reply to message #55003] Wed, 24 October 2007 10:15 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

> I put the following on WorkbenchWindowAdvisor:

> public void postWindowCreate()
> {
> Shell shell = getWindowConfigurer().getWindow().getShell();

> shell.setImage(CorePlugin.getInstance().getImage(Constants.A PP_IMAGE));
> shell.setMaximized(true);
> }

> But the icon won't show up. Any ideas ?

I've got it working now. The icon shows up after I add SWT.CLOSE to the
shell style.

Regards,

Setya
Previous Topic:Vision behind Rich Ajax Platform
Next Topic:ServletBridge
Goto Forum:
  


Current Time: Sat Nov 09 03:30:27 GMT 2024

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

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

Back to the top