Home » Eclipse Projects » Remote Application Platform (RAP) » Reload Java Class (i.e. a ViewPart) on Runtime
| |
Re: Reload Java Class (i.e. a ViewPart) on Runtime [message #521144 is a reply to message #521132] |
Tue, 16 March 2010 14:57 |
Edin Edin Messages: 101 Registered: January 2010 |
Senior Member |
|
|
Hey Holger,
thny for your answer, but that is not what i want. Actually i just want to have sth. like dynamically reloading Java classes while the RAP Application is running. I.e. i have a ViewPart with a button and, i start the RAP application with that view. So after a while i check that my view should have two buttons. So i add that second button to the source, create class file, and want to use that new class file instead of old one. but without retarting the RAP app. dynamically loading and reloading class with normal java isnt a problem. but i dont know if its possible with RAP? i want, that when user logs in next time (or in best way, reopen the view), he get that new view instance with two buttons, without restarting the whole RAP app.
hope now its clear, otherwise i can write to you a mail on german if you like.
Greetings, Edin
|
|
|
Re: Reload Java Class (i.e. a ViewPart) on Runtime [message #521157 is a reply to message #521144] |
Tue, 16 March 2010 15:25 |
Holger Staudacher Messages: 166 Registered: July 2009 |
Senior Member |
|
|
Oh ok,
so to replace classes you can use OSGi. Just load a new bundle (should
have a newer version than the old one) with your ViewPart Impl and
Extension. Just google a little bit about OSGi/Equinox and how to load
bundles.
Hope this may help.
Regards Holger
On 2010-03-16 15:57:17 +0100, ededagic <dedagic@acsa-consulting.de> said:
> Hey Holger,
>
> thny for your answer, but that is not what i want. Actually i just want
> to have sth. like dynamically reloading Java classes while the RAP
> Application is running. I.e. i have a ViewPart with a button and, i
> start the RAP application with that view. So after a while i check that
> my view should have two buttons. So i add that second button to the
> source, create class file, and want to use that new class file instead
> of old one. but without retarting the RAP app. dynamically loading and
> reloading class with normal java isnt a problem. but i dont know if its
> possible with RAP? i want, that when user logs in next time (or in best
> way, reopen the view), he get that new view instance with two buttons,
> without restarting the whole RAP app.
>
> hope now its clear, otherwise i can write to you a mail on german if you like.
>
> Greetings, Edin
--
-----------------------------------------
http://eclipsesource.com
http://twitter.com/eclipsesource
|
|
| | |
Goto Forum:
Current Time: Mon Oct 07 05:29:45 GMT 2024
Powered by FUDForum. Page generated in 0.06076 seconds
|