|
|
|
|
|
|
|
Re: Splash Screen Client Swing [message #991054 is a reply to message #990757] |
Mon, 17 December 2012 08:45   |
Urs Beeli Messages: 571 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
Beat,
Thanks for your response. I've tried this approach, however, I can't quite get it to work yet.
First of all, my swing client plugin's Activator does *not* have a getIcon() method. Its signature is
public class Activator implements BundleActivator{
and the only methods it has are start(), stop() and getDefault().
To work around this, I've tried modifying SwingEnvironment.createIconUIResource() as follows:
private IconUIResource createIconUIResource(String resourceSimpleName) {
Icon icon = org.eclipse.scout.rt.ui.swing.Activator.getIcon(resourceSimpleName);
if (icon != null) {
return new IconUIResource(icon);
}
else {
return null;
}
}
However, when running my client, I just get a grey rectangle instead of the splash screen and a line in the console saying:
!MESSAGE org.eclipse.scout.rt.ui.swing.SwingIconLocator.warnImageNotFound(SwingIconLocator.java:141) could not find image 'Splash'
So, for some reason, my splash screen image cannot be found (despite there being a Splash.png file in *.ui.swing/resources/icons).
Do I need something else to allow the icon resolution? Or is my attempt at directly accessing the org.eclipse.scout.rt.ui.swing.Activator what is causing this problem?
I'd appreciate any hints on where I go wrong.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02380 seconds