mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for 219834: ClosedChannelException when accessing the PDOM
This commit is contained in:
parent
270e8513e6
commit
1ed58e8410
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2002, 2007 QNX Software Systems and others.
|
||||
* Copyright (c) 2002, 2008 QNX Software Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -756,7 +756,7 @@ public class CSourceHover extends AbstractCEditorTextHover implements ITextHover
|
|||
private String searchInIndex(ITranslationUnit tUnit, IRegion textRegion) {
|
||||
IProgressMonitor monitor= new NullProgressMonitor();
|
||||
ComputeSourceRunnable computer= new ComputeSourceRunnable(tUnit, textRegion);
|
||||
ASTProvider.getASTProvider().runOnAST(tUnit, ASTProvider.WAIT_ACTIVE_ONLY, monitor, computer);
|
||||
ASTProvider.getASTProvider().runOnAST(tUnit, ASTProvider.WAIT_NO, monitor, computer);
|
||||
return computer.getSource();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue