Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [RWT Standalone] Access Application object at runtime
[RWT Standalone] Access Application object at runtime [message #954041] Mon, 22 October 2012 14:46 Go to next message
Benjamin Wolff is currently offline Benjamin Wolff
Messages: 111
Registered: July 2009
Senior Member
Hi,

I'm just wondering whether it is a valid use-case to use the add* methods of the org.eclipse.rap.rwt.application.Application interface at runtime, after the Application has been configured by using an implementation of the ApplicationConfiguration interface, es described in the RWT standalone guide. Is it possible to add resources at a later point?

If so, what would be the proper way to get ahold of the Application object at runtime?

Somehow I doubt that is foreseen, as I didn't find any method to access the Application after the initial configuration, and there don't seem to be methods to remove resources again. However, just to be sure I'm asking this question here.

Thanks!!

Cheers,
Ben
Re: [RWT Standalone] Access Application object at runtime [message #954747 is a reply to message #954041] Tue, 23 October 2012 04:04 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Ben,

you can register resources at runtime with the resource manager.

RWT.getResourceManager().register( ... );

At the moment, there is no method to access the application at runtime.
Do you have a use case apart from resource registration?

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: [RWT Standalone] Access Application object at runtime [message #956801 is a reply to message #954041] Wed, 24 October 2012 16:26 Go to previous message
Benjamin Wolff is currently offline Benjamin Wolff
Messages: 111
Registered: July 2009
Senior Member
Hi Ralf,

thanks for the clarification!

I was just curious, I don't have any other use case than registering resources dynamically, and this can be done easily, as you mentioned Smile.

Cheers,
Ben


Previous Topic:Plans for the rendering engine on 2.0
Next Topic:Current Web Demo Source Code
Goto Forum:
  


Current Time: Thu Aug 21 04:20:52 EDT 2014

Powered by FUDForum. Page generated in 0.04320 seconds