Permalink
Browse files

Use CustomFileChooser so it can check if the user wants to overwrite

existing files.
  • Loading branch information...
RobertBColton committed Nov 27, 2014
1 parent 33e112c commit 6e03fe2a3699128822c82a9871671f4f790c0e69
Showing with 2 additions and 1 deletion.
  1. +2 −1 org/enigma/EnigmaRunner.java
@@ -69,6 +69,7 @@
import org.enigma.frames.ProgressFrame;
import org.enigma.messages.Messages;
import org.enigma.utility.EnigmaBuildReader;
import org.lateralgm.components.CustomFileChooser;
import org.lateralgm.components.ErrorDialog;
import org.lateralgm.components.CodeTextArea;
import org.lateralgm.components.GmMenu;
@@ -714,7 +715,7 @@ else if (mode < MODE_DESIGN) //run/debug
}
if (mode == MODE_COMPILE)
{
JFileChooser fc = new JFileChooser();
CustomFileChooser fc = new CustomFileChooser("/org/lateralgm","LAST_FILE_DIR");
CustomFileFilter exefilter = new CustomFileFilter(
Messages.getString("EnigmaRunner.CHOOSER_EXE_DESCRIPTION"), ext);
fc.setFileFilter(exefilter); //$NON-NLS-1$

0 comments on commit 6e03fe2

Please sign in to comment.