protected void notifyEditorListeners(final EditorEvent e) {
		if (e == null)
			return;
		if (editorListenerList == null || editorListenerList.isEmpty())
			return;
		Runnable r = new Runnable() {
			public void run() {
				for (EditorListener el : editorListenerList) {
					switch (e.getID()) {
					case EditorEvent.EDITOR_ENABLED:
						el.editorEnabled(e);
						break;
					case EditorEvent.EDITOR_DISABLED:
						el.editorDisabled(e);
						break;
					}
				}
			}
		};
		if (EventQueue.isDispatchThread()) {
			r.run();
		}
		else {
			EventQueue.invokeLater(r); // make sure it is in AWT thread
		}
	}