|Plugin.xml reload [message #1224937]
||Sat, 28 December 2013 07:04
| Don Smyth
Registered: April 2013
I am using a plug-in (with activator) with preference pages to allow users to change an apps preferences.|
In another plugin, the main application, I have a .product file where I have specified -clean as a launch argument.
The problem I have is that if I modify the plugin.xml file in the preferences plugin, the changes are not reflected when I run the main application (even though I have specified the -clean argument).
The only references I have come accross with regards to reloading the plugin.xml suggest 1: unload the plugin bundle, close eclipse, then reload the bundle.
2: use a Target platform and disable then enable the plugin there.
For 1, I have no idea ho to unload the plugin manually or in code - the plugin only runs when I run the application - it is not running in the host console (OSGI>ss ) so I can't unload it.
For 2 - I experimented with creating and using a target platform but after many hours of trial and error I could not get a target working - so I am using the running platform as the target (yes, not best practice but it is working). As I am using the running platform (Kepler 4.3 + a few addons) as the target I don't have my preferences plugin in the content to enable / disable.
What I could try is putting all the preferences code into the main application and see if changes are realised (as the -clean launch flag is in the main application), any other ideas?
Powered by FUDForum
. Page generated in 0.11316 seconds