Bug 84862 Advanced syntax highlighting
Is it possible to change ASTProvider.ActivationListener.isJavaEditor() method to be more open for subclasses of CompilationUnitEditor? I know, that it is not API, but SWT Designer and VE use it and, becase their have ID different than two hardcoded in isJavaEditor(), advanced syntax is not highlighted after changes. May be some solution using "instanceof" or "getAdapter()"?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ASTProvider.java
return;
		}
		
		if (DEBUG && (javaElement != null || ast != null)) 
			System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "caching AST: " + toString(ast) + " for: " + toString(javaElement)); 
		if (fAST != null)
			disposeAST();
		fAST= ast;
		
		
		synchronized (fWaitLock) {
			fWaitLock.notifyAll();
		}
	}
	
	/**
	 * Returns a shared compilation unit AST for the given
	 * Java element.
	 * <p>
	 * Clients are not allowed to modify the AST and must
	 * synchronize all access to its nodes.
	 * </p>
	 * 
	 * @param je				the Java element
	 * @param waitFlag			{@link #WAIT_YES}, {@link #WAIT_NO} or {@link #WAIT_ACTIVE_ONLY}
	 * @param progressMonitor	the progress monitor
	 * @return					the AST or <code>null</code> if the AST is not available
	 */
	public CompilationUnit getAST(IJavaElement je, WAIT_FLAG waitFlag, IProgressMonitor progressMonitor) {
		Assert.isTrue(je != null && (je.getElementType() == IJavaElement.CLASS_FILE || je.getElementType() == IJavaElement.COMPILATION_UNIT));