package pipe.actions;

import pipe.gui.ApplicationSettings;
import pipe.views.PipeApplicationView;

import java.awt.event.ActionEvent;

public class ExitAction extends GuiAction {

    public ExitAction() {
        super("Exit", "Close the program", "ctrl Q");
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        PipeApplicationView view = ApplicationSettings.getApplicationView();
        view.dispose();
        System.exit(0);
    }
}

@@ -397,24 +397,66 @@
 tionView();%0A
+        if (view.checkForSaveAll()) %7B%0A    
         view
@@ -475,16 +475,20 @@
         
+    
 System.e
@@ -495,16 +495,26 @@
 xit(0);%0A
+        %7D%0A
     %7D%0A%7D%0A

Exit checks for save