|
|
|
Re: How to put icon on application's title bar ? [message #55003 is a reply to message #54394] |
Wed, 24 October 2007 09:25 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03940 seconds