public void processCancel( ProcessingThread context ) {}
public void processFinished( ProcessingThread context )
{
final BasicApplication app = (BasicApplication) AbstractApplication.getApplication();
final MainFrame mf = (MainFrame) app.getComponent( Main.COMP_MAIN );
final File f = (File) context.getClientArg( "file" );
if( context.getReturnCode() == DONE ) {
doc.setFile( f );
app.getMenuFactory().addRecent( f );
doc.setDirty( false );
} else {
File tempDir = new File( f.getParentFile().getAbsolutePath() + ".tmp" );
if( tempDir.exists() ) {
JOptionPane.showMessageDialog( mf.getWindow(),
AbstractApplication.getApplication().getResourceString( "warnOldSessionDir" )+ " :\n"+
tempDir.getAbsolutePath(), getValue( Action.NAME ).toString(),
JOptionPane.WARNING_MESSAGE );
}
}
mf.updateTitle();
}