public boolean openAnalysis(File f,SaveType saveType){
  if (!f.exists() || !f.canRead()) {
    throw new IllegalArgumentException("Can't read " + f.getPath());
  }
  mainFrameLoadSaveHelper.prepareForFileLoad(f,saveType);
  mainFrameLoadSaveHelper.loadAnalysis(f);
  return true;
}

public boolean openAnalysis ( File f , SaveType saveType ) { if ( ! f . exists ( ) || ! f . canRead ( ) ) { throw new IllegalArgumentException ( "Can't read " + f . getPath ( ) ) ; } mainFrameLoadSaveHelper . prepareForFileLoad ( f , saveType ) ; mainFrameLoadSaveHelper . loadAnalysis ( f ) ; return true ; }
opens the analysis . also clears the source and summary panes . makes comments enabled false . sets the savetype and adds the file to the recent menu .
