Posted By

Unsafe on 02/06/09


Tagged

eclipse jface swt


Versions (?)

Eclipse JFace FileDialog - Save


 / Published in: Java
 

  1. FileDialog fileDialog = new FileDialog(shell, SWT.SAVE);
  2.  
  3. fileDialog.setFilterNames(new String[] {"Javascript Files (*.js)"});
  4. fileDialog.setFilterExtensions(new String[] {"*.js"});
  5. fileDialog.setText("Select file..");
  6. fileDialog.setFilterPath(folder.getRawLocation().toString());
  7.  
  8. String directory = fileDialog.open();

Report this snippet  

You need to login to post a comment.