public void saveAs()
  {
    // get instance of a file chooser
    TFileChooser saveDialog = GUIGlobals.PROJECT_LOAD_SAVE_DIALOG ;

    saveDialog.setProjectFiler();

    // prepare a filename advice
     File file = TGlobal.tools.createProjectFilename(
                    TGlobal.projects.getCurrentProject()) ;

     // defaults
     if (file == null)
     {
       try
       {
         file = new File( TGlobal.projects.getCurrentProject().
                          getWorkingDirectory()
                          + "/project.ppf" ) ;
       }
       catch (Exception e)
       {
         file = null ;
       }
     }

     if (file != null)
     {
       saveDialog.setSelectedFile(file);
     }

     // open dialog -------
     int returnVal = saveDialog.showSaveDialog() ;
     if ( returnVal == JFileChooser.APPROVE_OPTION )
     {
       save( saveDialog.getSelectedFile() ) ;
     }
  }