1 7 8 package com.memoire.vainstall.builder.action; 9 10 import com.memoire.vainstall.builder.*; 11 12 import java.util.Iterator ; 13 14 22 public class QuitAction extends AbstractVAIBuilderAction { 23 24 27 public QuitAction() { 28 super(); 29 } 30 31 34 public void runnit() { 35 36 SaveAllProductAction action = new SaveAllProductAction(); 38 action.initialize(getController()); 39 action.runnit(); 40 41 Iterator iterator = getController().getProductControllerList().values().iterator(); 43 while (iterator.hasNext() == true) { 44 VAIProductController productController = (VAIProductController)iterator.next(); 45 46 String id = productController.getModel().getProductDirectory(); 47 getController().removeProduct(id); 48 } 49 50 getModel().getWindowList().put("VAIBuilderFrame",getController().getFrame().getBounds()); 52 53 getModel().save(); 54 55 System.exit(0); 56 } 57 } 58 | Popular Tags |