FileOutputStream f = new FileOutputStream(filename); ObjectOutputStream s = new ObjectOutputStream(f); s.writeObject(myModel.getList()); s.flush(); s.close(); f.close(); PatchEdit.hideWaitDialog(); changed = false;
try { FileOutputStream f = new FileOutputStream(filename); ObjectOutputStream s = new ObjectOutputStream(f); s.writeObject(myModel.getList()); s.flush(); s.close(); f.close(); changed = false; PatchEdit.hideWaitDialog(); } catch (IOException e) { PatchEdit.hideWaitDialog(); throw e; }
    void save() throws IOException {        PatchEdit.showWaitDialog();        FileOutputStream f = new FileOutputStream(filename);        ObjectOutputStream s = new ObjectOutputStream(f);        s.writeObject(myModel.getList());        s.flush();        s.close();        f.close();        PatchEdit.hideWaitDialog();        changed = false;    }