new AEThread("update tester" )
{
public void
runSupport()
{
try{
UpdateManager update_man = manager.getDefaultPluginInterface().getUpdateManager();
UpdateInstaller installer = update_man.createInstaller();
File from_file = new File( "C:\\temp\\update_from" );
File to_file = new File( "C:\\temp\\update_to" );
PrintWriter pw = new PrintWriter( new FileWriter( from_file ));
pw.println( "hello mum");
pw.close();
to_file.delete();
installer.addMoveAction( from_file.toString(), to_file.toString());
update_man.applyUpdates( false );
}catch( Throwable e ){
e.printStackTrace();
}
}
}.start();