Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Splash Screen Counterpart in RAP
Splash Screen Counterpart in RAP [message #135164] Fri, 05 June 2009 15:01 Go to next message
David H. is currently offline David H.Friend
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 #135178 is a reply to message #135164] Fri, 05 June 2009 16:16 Go to previous messageGo to next message
Stefan Hansel is currently offline Stefan HanselFriend
Messages: 103
Registered: July 2009
Senior Member
Just a wild guess...

Is your 'theme'-folder part of the classpath ?
I think RAP will look up the image on the classpath , so you might try to
put your folder under 'src'.

To give you hope: we do have a splashscreen (simple big image centered on
the screen, until the main or login-windows opens), so yes it's possible
and you might be just a tiny little bit away from it :)
Re: Splash Screen Counterpart in RAP [message #135429 is a reply to message #135178] Mon, 08 June 2009 09:35 Go to previous messageGo to next message
David H. is currently offline David H.Friend
Messages: 6
Registered: July 2009
Junior Member
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.

> 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)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.regis terResources(ProxyServlet.java:148)
at
org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.re gisterResources(HttpServiceImpl.java:71)
at
org.eclipse.equinox.http.registry.internal.HttpRegistryManag er.registerResources(HttpRegistryManager.java:207)
at
org.eclipse.equinox.http.registry.internal.HttpRegistryManag er.addResourcesContribution(HttpRegistryManager.java:102)
at
org.eclipse.equinox.http.registry.internal.ResourceManager.a dded(ResourceManager.java:121)
at
org.eclipse.equinox.http.registry.internal.ExtensionPointTra cker.open(ExtensionPointTracker.java:75)
at
org.eclipse.equinox.http.registry.internal.ResourceManager.s tart(ResourceManager.java:55)
at
org.eclipse.equinox.http.registry.internal.HttpRegistryManag er.start(HttpRegistryManager.java:86)
at
org.eclipse.equinox.http.registry.internal.HttpServiceTracke r.addingService(HttpServiceTracker.java:58)
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
at
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractT racked.java:184)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.jav a:339)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.jav a:273)
at
org.eclipse.equinox.http.registry.internal.HttpServiceTracke r.open(HttpServiceTracker.java:42)
at
org.eclipse.equinox.http.registry.internal.Activator.addingS ervice(Activator.java:59)
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAddin g(ServiceTracker.java:896)
at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTr acked.java:261)
at
org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractT racked.java:184)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.jav a:339)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.jav a:273)
at
org.eclipse.equinox.http.registry.internal.Activator.start(A ctivator.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:370)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1068)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:557)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:464)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:248)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:445)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:220)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:330)
Re: Splash Screen Counterpart in RAP -- Solution found, wiki wrong! [message #135507 is a reply to message #135429] Mon, 08 June 2009 14:25 Go to previous messageGo to next message
David H. is currently offline David H.Friend
Messages: 6
Registered: July 2009
Junior Member
Hey guys, I found a solution. That wiki snippet is simply wrong!

>> 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.
Both of them is not necessary

The only thing I had to do was adding a leading slash to the value of the
alias parameter. Because without it the alias will be invalid:

> java.lang.IllegalArgumentException: Invalid alias 'loading.gif'
> at ...

So, the following is right:
<extension point="org.eclipse.equinox.http.registry.resources">
<resource
alias="/loading.gif"
base-name="branding/loading.gif">
</resource>
</extension>

It doesn't matter if base-name also includes a leading slash, it makes no
difference. Both variants are good.
Re: Splash Screen Counterpart in RAP [message #135518 is a reply to message #135429] Mon, 08 June 2009 14:34 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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
Previous Topic:Incubator creation review
Next Topic:About Draw2D
Goto Forum:
  


Current Time: Fri Apr 26 03:11:47 GMT 2024

Powered by FUDForum. Page generated in 0.04286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top