private void doSaves(){
  Workspace workspace=desktop.getWorkspace();
  WorkspaceSerializer serializer=new WorkspaceSerializer(workspace);
  try {
    FileOutputStream ostream=new FileOutputStream("workspace.zip");
    try {
      serializer.serialize(ostream);
    }
  finally {
      ostream.close();
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

private void doSaves ( ) { Workspace workspace = desktop . getWorkspace ( ) ; WorkspaceSerializer serializer = new WorkspaceSerializer ( workspace ) ; try { FileOutputStream ostream = new FileOutputStream ( "workspace.zip" ) ; try { serializer . serialize ( ostream ) ; } finally { ostream . close ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } }
save all checked components .
