Revision: 11bec5f6aa0e Branch: WithBrailleFormatting Author: Brandon Roller <brandon.r.roller@xxxxxxxxx> Date: Mon Jul 15 12:05:29 2013 Log: Added listener for when shell is closed http://code.google.com/p/brailleblaster/source/detail?r=11bec5f6aa0e&repo=newdesign Modified: /src/main/org/brailleblaster/wordprocessor/WPManager.java =======================================--- /src/main/org/brailleblaster/wordprocessor/WPManager.java Mon Jul 15 07:48:47 2013 +++ /src/main/org/brailleblaster/wordprocessor/WPManager.java Mon Jul 15 12:05:29 2013
@@ -116,7 +116,11 @@ this.shell.addListener(SWT.Close, new Listener() { public void handleEvent(Event event) {- System.out.println("Main Shell handling Close event, about to dipose the main Display"); + System.out.println("Main Shell handling Close event, about to dipose the main Display");
+ int count = getList().size(); + for(int i = 0; i < count; i++){ + getList().get(i).fileClose(); + } display.dispose(); bbMenu.writeRecentsToFile(); }