Bug 53473 [EditorMgmt] Leak editor++ on open/close
Build I20040226 1. Create a simple project P; create a file file.txt. 2. Open file.txt; close file.txt Using a profiler, check if there are any instances hanging around. I discover a left-over editor. In addition, I leak many ActionHandler and HandlerSubmissions (equal number). (I appear to leak 1 additional editor and N ActionHandler and HandlerSubmission instances for each pair of open/close operations) (I can also cause this with the java editor)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ASTProvider.java
if (fIsReconciling && !fReconcilingJavaElement.equals(javaElement)) {
				fIsReconciling= false;
				fReconcilingJavaElement= null;
			}
		}
		cache(null, javaElement);
	}
	/**
	 * Returns whether the given compilation unit AST is
	 * cached by this AST provided.
	 * 
	 * @param ast the compilation unit AST
	 * @return <code>true</code if the given AST is the cached one
	 */
	public boolean isCached(CompilationUnit ast) {
		return ast != null && fAST == ast; 
	}
	void aboutToBeReconciled(IJavaElement javaElement) {
		Assert.isNotNull(javaElement);
		
		if (DEBUG)
			System.out.println(DEBUG_PREFIX + "about to reconcile: " + toString(javaElement)); 
		synchronized (fReconcileLock) {
			fIsReconciling= true;
			fReconcilingJavaElement= javaElement;
		}
		cache(null, javaElement);
	}
	
	private synchronized void disposeAST() {