public EditorListenerTracker() { EncodingManager.getInstance(); //adds listeners EditorEventMulticasterImpl multicaster = (EditorEventMulticasterImpl)EditorFactory.getInstance().getEventMulticaster(); before = multicaster.getListeners(); myDefaultProjectInitialized = ((ProjectManagerImpl)ProjectManager.getInstance()).isDefaultProjectInitialized(); }