Pages

about my opensource eclipse java applications recently i'm studying GWT and Android

Friday, March 11, 2005

how to change your eclipse rcp application's title and icon

if you hurry anyway,you can do that.

public class OptipngWrapperWorkbenchAdvisor extends WorkbenchAdvisor{

public void postWindowOpen(IWorkbenchWindowConfigurer configurer) {
configurer.setTitle(Messages.getString("optipng_title"));
Image logoImage=ImageDescriptor.createFromURL(OptipngWrapperPlugin.getDefault().find(new Path("icons/akj_eclipse.png"))).createImage(); //$NON-NLS-1$
configurer.getWindow().getShell().setImage(logoImage);
}

}

but this approach has problem. selected icon isn't deliverd to other shell (Help or Updates)
that's not so important thing.

but I recomend you use product extension point.
more detail see
http://eclipse.org/articles/Article-Branding/branding-your-application.html
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product name="akJ Speech Tools"
application="org.jpn.xucker.rcp.speech.SpeechApplication"
>
<property name="windowImage" value="icons/akj.png"/>
</product>
</extension>