1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

bug 323556: AssertionFailedException in CEditor.installOverrideIndicator

Patch from Marc-Andre Laperle
This commit is contained in:
Andrew Gvozdev 2010-08-26 02:31:42 +00:00
parent 25e014ce24
commit b90b9aee4c

View file

@ -3511,8 +3511,9 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
addReconcileListener(fOverrideIndicatorManager);
if (provideAST) {
ASTProvider.getASTProvider().runOnAST(getInputCElement(), ASTProvider.WAIT_NO, getProgressMonitor(), new ASTRunnable() {
ICElement inputCElement = getInputCElement();
if (provideAST && inputCElement instanceof ITranslationUnit) {
ASTProvider.getASTProvider().runOnAST(inputCElement, ASTProvider.WAIT_NO, getProgressMonitor(), new ASTRunnable() {
public IStatus runOnAST(ILanguage lang, IASTTranslationUnit ast) throws CoreException {
if (ast != null)
fOverrideIndicatorManager.reconciled(ast, true, getProgressMonitor());