public void fireUndoQueueEvent(Document doc, int type) {
		undoEvent.setDocument(doc);
		undoEvent.setType(type);
		for (int i = 0, limit = undoQueueListeners.size(); i < limit; i++) {
			((UndoQueueListener) undoQueueListeners.get(i)).undo(undoEvent);
		}
		
		// Cleanup
		undoEvent.setDocument(null);
	}