// Path: src/lingua/ui/gtk/main_window/dialogs/filters/FileFilterWithExtension.java
// public abstract class FileFilterWithExtension extends FileFilter{
//     public abstract String getExtension();
// }
// 
// Path: src/lingua/ui/gtk/main_window/dialogs/messages/FileExistsMessageDialog.java
// public class FileExistsMessageDialog extends MessageDialog{
// 
//     public FileExistsMessageDialog(){
//         this("");
//     }
// 
//     public FileExistsMessageDialog(String filename) {
//         super(MainWindow.getInstance(), true, MessageType.WARNING, ButtonsType.YES_NO, String.format(StringResources.getInstance().getString("msg_file_exists"), filename));
//         setSecondaryText(StringResources.getInstance().getString("msg_file_exists_secondary"));
//         setDefaultResponse(ResponseType.NO);
//     }
// 
// }
// 
// Path: src/lingua/ui/gtk/main_window/dialogs/messages/FileModifiedMessageDialog.java
// public class FileModifiedMessageDialog extends MessageDialog{
// 
//     public FileModifiedMessageDialog(){
//         this(false, "");
//     }
// 
//     public FileModifiedMessageDialog(boolean isInputFile, String filename) {
//         super(MainWindow.getInstance(), true, MessageType.WARNING,
//                 ButtonsType.YES_NO,
//                 isInputFile?
//                     StringResources.getInstance().getString("msg_input_file_modified"):
//                     String.format(StringResources.getInstance().getString("msg_file_modified"),
//                 filename));
// 
//         addButton(Stock.CANCEL, ResponseType.CANCEL).setCanDefault(true);
//         setDefaultResponse(ResponseType.CANCEL);
//     }
// 
// }
// 
// Path: src/lingua/ui/gtk/main_window/dialogs/messages/InterpreterStillRunningDialog.java
// public class InterpreterStillRunningDialog extends MessageDialog{
// 
//     public InterpreterStillRunningDialog(){
//         super(MainWindow.getInstance(), true, MessageType.WARNING, ButtonsType.YES_NO, String.format(StringResources.getInstance().getString("msg_interpreter_running")));
//         setDefaultResponse(ResponseType.NO);
//     }
// 
// }


import org.gnome.gtk.ResponseType;
import java.io.File;
import lingua.ui.gtk.main_window.dialogs.filters.FileFilterWithExtension;
import lingua.ui.gtk.main_window.dialogs.messages.FileExistsMessageDialog;
import lingua.ui.gtk.main_window.dialogs.messages.FileModifiedMessageDialog;
import lingua.ui.gtk.main_window.dialogs.messages.InterpreterStillRunningDialog;
import org.gnome.gtk.FileChooserDialog;
/*
 *  The MIT License
 * 
 *  Copyright 2012 Georgios Migdos <cyberpython@gmail.com>.
 * 
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 * 
 *  The above copyright notice and this permission notice shall be included in
 *  all copies or substantial portions of the Software.
 * 
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *  THE SOFTWARE.
 */

package lingua.ui.gtk.main_window.dialogs.io;


/**
 *
 * @author Georgios Migdos <cyberpython@gmail.com>
 */
public class DialogManager {

    public static boolean verifyStopInterpreter() {
// Path: src/lingua/ui/gtk/main_window/dialogs/filters/FileFilterWithExtension.java
// public abstract class FileFilterWithExtension extends FileFilter{
//     public abstract String getExtension();
// }
// 
// Path: src/lingua/ui/gtk/main_window/dialogs/messages/FileExistsMessageDialog.java
// public class FileExistsMessageDialog extends MessageDialog{
// 
//     public FileExistsMessageDialog(){
//         this("");
//     }
// 
//     public FileExistsMessageDialog(String filename) {
//         super(MainWindow.getInstance(), true, MessageType.WARNING, ButtonsType.YES_NO, String.format(StringResources.getInstance().getString("msg_file_exists"), filename));
//         setSecondaryText(StringResources.getInstance().getString("msg_file_exists_secondary"));
//         setDefaultResponse(ResponseType.NO);
//     }
// 
// }
// 
// Path: src/lingua/ui/gtk/main_window/dialogs/messages/FileModifiedMessageDialog.java
// public class FileModifiedMessageDialog extends MessageDialog{
// 
//     public FileModifiedMessageDialog(){
//         this(false, "");
//     }
// 
//     public FileModifiedMessageDialog(boolean isInputFile, String filename) {
//         super(MainWindow.getInstance(), true, MessageType.WARNING,
//                 ButtonsType.YES_NO,
//                 isInputFile?
//                     StringResources.getInstance().getString("msg_input_file_modified"):
//                     String.format(StringResources.getInstance().getString("msg_file_modified"),
//                 filename));
// 
//         addButton(Stock.CANCEL, ResponseType.CANCEL).setCanDefault(true);
//         setDefaultResponse(ResponseType.CANCEL);
//     }
// 
// }
// 
// Path: src/lingua/ui/gtk/main_window/dialogs/messages/InterpreterStillRunningDialog.java
// public class InterpreterStillRunningDialog extends MessageDialog{
// 
//     public InterpreterStillRunningDialog(){
//         super(MainWindow.getInstance(), true, MessageType.WARNING, ButtonsType.YES_NO, String.format(StringResources.getInstance().getString("msg_interpreter_running")));
//         setDefaultResponse(ResponseType.NO);
//     }
// 
// }


// Path: src/lingua/ui/gtk/main_window/dialogs/io/DialogManager.java
import org.gnome.gtk.ResponseType;
import java.io.File;
import lingua.ui.gtk.main_window.dialogs.filters.FileFilterWithExtension;
import lingua.ui.gtk.main_window.dialogs.messages.FileExistsMessageDialog;
import lingua.ui.gtk.main_window.dialogs.messages.FileModifiedMessageDialog;
import lingua.ui.gtk.main_window.dialogs.messages.InterpreterStillRunningDialog;
import org.gnome.gtk.FileChooserDialog;

/*
 *  The MIT License
 * 
 *  Copyright 2012 Georgios Migdos <cyberpython@gmail.com>.
 * 
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 * 
 *  The above copyright notice and this permission notice shall be included in
 *  all copies or substantial portions of the Software.
 * 
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *  THE SOFTWARE.
 */

package lingua.ui.gtk.main_window.dialogs.io;


/**
 *
 * @author Georgios Migdos <cyberpython@gmail.com>
 */
public class DialogManager {

    public static boolean verifyStopInterpreter() {
        InterpreterStillRunningDialog dlg = new InterpreterStillRunningDialog();