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:
parent
25e014ce24
commit
b90b9aee4c
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue