public boolean addUndoPoint(){
  boolean result;
  File tempFile;
  ObjectOutputStream oos;
  ArrayList data;
  if (m_Data == null)   return false;
  tempFile=null;
  try {
    tempFile=File.createTempFile("meka",SerializedInstancesLoader.FILE_EXTENSION);
    tempFile.deleteOnExit();
    data=new ArrayList();
    data.add(m_CurrentFile);
    data.add(m_Data);
    oos=new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(tempFile)));
    oos.writeObject(data);
    oos.flush();
    oos.close();
    m_Undo.add(tempFile);
    result=true;
  }
 catch (  Exception e) {
    result=false;
    handleException(null,"Failed to save undo data to '" + tempFile + "':",e);
    JOptionPane.showMessageDialog(this,"Failed to save undo data to '" + tempFile + "':\n"+ e,"Error",JOptionPane.ERROR_MESSAGE);
  }
  updateMenu();
  return result;
}

public boolean addUndoPoint ( ) { boolean result ; File tempFile ; ObjectOutputStream oos ; ArrayList data ; if ( m_Data == null ) return false ; tempFile = null ; try { tempFile = File . createTempFile ( "meka" , SerializedInstancesLoader . FILE_EXTENSION ) ; tempFile . deleteOnExit ( ) ; data = new ArrayList ( ) ; data . add ( m_CurrentFile ) ; data . add ( m_Data ) ; oos = new ObjectOutputStream ( new BufferedOutputStream ( new FileOutputStream ( tempFile ) ) ) ; oos . writeObject ( data ) ; oos . flush ( ) ; oos . close ( ) ; m_Undo . add ( tempFile ) ; result = true ; } catch ( Exception e ) { result = false ; handleException ( null , "Failed to save undo data to '" + tempFile + "':" , e ) ; JOptionPane . showMessageDialog ( this , "Failed to save undo data to '" + tempFile + "':\n" + e , "Error" , JOptionPane . ERROR_MESSAGE ) ; } updateMenu ( ) ; return result ; }
adds an undo point .
