public static void quit() {
		
		// Store List of Open Documents and close documents
		if (!saveOpenDocumentList()) {
			return;
		}
		
		// Store current window position
		Dimension size = Outliner.outliner.getSize();
		Point location = Outliner.outliner.getLocation();
		
		Preferences.getPreferenceInt(Preferences.MAIN_WINDOW_W).cur = size.width;
		Preferences.getPreferenceInt(Preferences.MAIN_WINDOW_H).cur = size.height;
		Preferences.getPreferenceInt(Preferences.MAIN_WINDOW_X).cur = location.x;
		Preferences.getPreferenceInt(Preferences.MAIN_WINDOW_Y).cur = location.y;
		
		// Hide Desktop
		Outliner.outliner.setVisible(false);
		//Outliner.outliner.dispose();
		
		// Save config and quit
		Preferences.saveConfigFile(Outliner.CONFIG_FILE);
		RecentFilesList.saveConfigFile(Outliner.RECENT_FILES_FILE);
		if (Outliner.findReplace.isInitialized()) {
			Outliner.findReplace.model.saveConfigFile();
		}
		
		System.exit(0);
	}