Reloading operations in classpath

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dcramer
Posts: 163
Joined: Sat Aug 28, 2010 1:23 am

Reloading operations in classpath

Post by dcramer »

Hi there,
Say I've written and compiled an AuthorOperation, associated it with an Action in Oxygen and tested it out. Then I modify the operation and recompile. Is there a way to reload the class to test the change without restarting Oxygen?

Thanks,
David
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Reloading operations in classpath

Post by Radu »

Hi David,

From what it looks in the code the class loaders are reused by Author actions and once a class loader has loaded a library it will not react to any modifications in it.
You could try to close all Docbook files from Oxygen and then reopen them. Oxygen tries to de-alocate a class loader once it is not used anymore. But I'm not sure if this would work either.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
dcramer
Posts: 163
Joined: Sat Aug 28, 2010 1:23 am

Re: Reloading operations in classpath

Post by dcramer »

As far as I can tell, quitting and restarting Oxygen is the only way to pick up a changed class (quitting the docs doesn't do it). It does seem to notice a newly added class however.

Thanks,
David
Post Reply