@Override public void reconciled(CompilationUnit ast, boolean forced, IProgressMonitor progressMonitor) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=58245 JavaPlugin javaPlugin= JavaPlugin.getDefault(); if (javaPlugin == null) return; // Always notify AST provider javaPlugin.getASTProvider().reconciled(ast, getInputJavaElement(), progressMonitor); // Notify listeners for (IJavaReconcilingListener listener : fReconcilingListeners) { listener.reconciled(ast, forced, progressMonitor); } // Update Java Outline page selection if (!forced && !progressMonitor.isCanceled()) { Shell shell= getSite().getShell(); if (shell != null && !shell.isDisposed()) { shell.getDisplay().asyncExec(new Runnable() { @Override public void run() { selectionChanged(); } }); } } }
public void reconciled(CompilationUnit ast, boolean forced, IProgressMonitor progressMonitor) { // see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=58245 JavaPlugin javaPlugin= JavaPlugin.getDefault(); if (javaPlugin == null) return; // Always notify AST provider javaPlugin.getASTProvider().reconciled(ast, getInputJavaElement(), progressMonitor); // Notify listeners Object[] listeners = fReconcilingListeners.getListeners(); for (int i = 0, length= listeners.length; i < length; ++i) ((IJavaReconcilingListener)listeners[i]).reconciled(ast, forced, progressMonitor); // Update Java Outline page selection if (!forced && !progressMonitor.isCanceled()) { Shell shell= getSite().getShell(); if (shell != null && !shell.isDisposed()) { shell.getDisplay().asyncExec(new Runnable() { public void run() { selectionChanged(); } }); } } }
reconciled(fAST, input, null); return fAST; } else reconciled(ast, input, null);
if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "Ignore created AST for " + je.getElementName() + " - AST from reconciler is newer"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ reconciled(fAST, je, null); } else reconciled(ast, je, null);