Eclipse JFace FileDialog - Save


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.