// File: ActionQuit.java // Classes: ActionQuit // Author: Kedar Patankar package edu.neu.ccs.demeter.tools.apstudio.graphedit; /**Action to close all windows and exit the application.*/ public class ActionQuit extends Action { public ActionQuit(Editor e) { super(e);} public String name() { return "Quit Application"; } public void doIt() { ActionCloseMultipleCds act1 = new ActionCloseMultipleCds(_editor,_editor.get_outStanding()); if(!act1.executeIt()) return; ActionCloseMultipleBehaviors act = new ActionCloseMultipleBehaviors(_editor,_editor.get_Mod_Behaviors()); if(act.executeIt()) shutDown(); } public void undoIt() { } private void shutDown() { _editor.close(); System.exit(0); } } /* end class ActionQuit */