Image path for favicon or splash screen [message #1384922] |
Tue, 03 June 2014 07:37 |
Thorsten Hilker Messages: 31 Registered: March 2014 |
Member |
|
|
Hi!
This code is not working:
public class BasicApplication implements ApplicationConfiguration {
public void configure(Application application) {
Map<String, String> properties = new HashMap<String, String>();
properties.put(WebClient.PAGE_TITLE, "Timerbee 2.0");
application.addStyleSheet( "com.imilia.test.gui.fancy", "theme/fancy/fancy.css" );
application.addStyleSheet( "com.imilia.test.gui.business", "theme/business/business.css" );
application.addStyleSheet( "com.imilia.test.gui.my", "resource/theme/my.css" );
properties.put( WebClient.THEME_ID, "com.imilia.test.gui.business" );
properties.put( WebClient.BODY_HTML, "<p><img src=\"com/imilia/test/gui/timerbee.png\" alt=\"FAVICON\"></p>" );
properties.put( WebClient.FAVICON, "com/imilia/test/gui/favicon.ico" );
application.addEntryPoint("/hello", new E4EntryPointFactory(E4ApplicationConfig.create("platform:/plugin/com.imilia.test.gui/Application.e4xmi", "bundleclass://com.imilia.test.gui/com.imilia.test.gui.LoginLifcecycle")), properties);
application.setOperationMode( OperationMode.SWT_COMPATIBILITY );
}
}
The images are not found (timerbee.png, favicon.ico).
(They are at the classpath)
The image on the splash screen is shown as "?".
The favicon is throwing an exception:
java.lang.IllegalArgumentException: Resource does not exist: com/imilia/test/gui/favicon.ico
at org.eclipse.rap.rwt.internal.resources.ResourceManagerImpl.getLocation(ResourceManagerImpl.java:105)
...
Is there a trick?
Greetings!
Thorsten
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08595 seconds