Splash Screen Counterpart in RAP [message #135164] |
Fri, 05 June 2009 15:01 |
David H. Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hello,
is it possible to show something like a splash screen in RAP? With this I
mean a loading screen, like the throbber in the browser (see [1]), that
the user knows, that the program is loading. Because I think (and possibly
much other people, too), that it is kinda annoying to see this white-bluey
background and nothing seems to happen.
I already followed [2], but I get an error, that the alias is unknown or
invalid. Maybe, when this would be functioning, this should be enough,
because the app is fullscreen and without resizeability.
[1] http://en.wikipedia.org/wiki/Throbber
[2]
http://wiki.eclipse.org/RAP/FAQ#How_can_I_use_an_image_in_th e_branding_body.3F
P.S.:
for [2] my project structure is looking as follows:
[Project Dir]
+-- #JRE System Library#
+-- #Plug-in Dependencies#
+-- src/
+-- META-INF/
+-- theme/
| +-- loading.gif
| +-- ...
+-- plugin.xml
and in the plugin.xml's extension point the base-name has got the value
"theme/loading.gif", anything else is left as the wiki says. Maybe I
missed something, can anybody tell me, please?
|
|
|
|
|
|
Re: Splash Screen Counterpart in RAP [message #135518 is a reply to message #135429] |
Mon, 08 June 2009 14:34 |
|
Hi David,
David H. wrote:
> stefan.hansel@tolina.de wrote:
>
>> Just a wild guess...
> Doesn't matter ;)
>
>> Is your 'theme'-folder part of the classpath ?
> I've tried this, but it didn't help.
>
>> I think RAP will look up the image on the classpath , so you might try
>> to put your folder under 'src'.
> That didn't work, too.
The path is bundle-relative. Of course, the folder that contains the
images need to be included in the build.properties for deployment.
Note that the resources are not registered by RAP, but directly by the
equinox registry.
>> To give you hope: we do have a splashscreen (simple big image centered
>> on the screen, until the main or login-windows opens),
> That'd be totally enough.
>
>> so yes it's possible and you might be just a tiny little bit away from
>> it :)
> Sounds nice...
>
> It's not working at all. I always get the following exception stack trace:
>
> java.lang.IllegalArgumentException: Invalid alias 'loading.gif'
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.check Alias(ProxyServlet.java:166)
> [...]
The alias has to start with a slash. I changed the FAQ accordingly.
Regards, Ralf
|
|
|
Powered by
FUDForum. Page generated in 0.04286 seconds