Re: Setting the exact location of the export

by Mitsaki » Thu Nov 10, 2011 3:42 pm

To do what I need, I just used the class

Code: Select all

FileContentManager

and I added blocked comment in the row 471-475, so the dialog box does not appear, like this and as savedName I put Our_home.

Code: Select all

  String savedName;
    savedName = "Our_home";
    // Use native file dialog under Mac OS X    
/*    if (OperatingSystem.isMacOSX()) {
      savedName = showFileDialog(parentView, dialogTitle, contentType, name, true);
    } else {
      savedName = showFileChooser(parentView, dialogTitle, contentType, name, true);
    }*/
The only thing that is missing now is to set the file, so that it is not saved automatically inside the sweethome3d folder, in workspace, but outside of it.