Skip to content
Snippets Groups Projects
Commit 5ced770f authored by tjc's avatar tjc
Browse files

fix to save locally to working dir

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@4102 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent a711d4f0
No related branches found
No related tags found
No related merge requests found
......@@ -133,12 +133,16 @@ public class RemoteFileDocument extends Document
**/
public OutputStream getOutputStream() throws IOException
{
final File write_file = new File(getName());
final File write_file = new File(System.getProperty("user.dir")+
System.getProperty("file.separator")+
getName());
if(write_file.exists())
{
int n = JOptionPane.showConfirmDialog(null,
"The file :\n"+getName()+
"The file :\n"+System.getProperty("user.dir")+
System.getProperty("file.separator")+
getName()+
"\nalready exists on the local disk.\nOverwrite?",
"Overwrite "+getName(),
JOptionPane.YES_NO_OPTION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment