Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-02-22 12:34:25 +0000
committerAnton Leherbauer2008-02-22 12:34:25 +0000
commit13aed5b3ca60dd67d62926d6c4f856d8ef4ab4be (patch)
tree1e44f964716431019ea4cc4b5e7efec7deaac363
parent287615a854c96ec9b058499af3e96b4943b9e064 (diff)
downloadorg.eclipse.cdt-13aed5b3ca60dd67d62926d6c4f856d8ef4ab4be.tar.gz
org.eclipse.cdt-13aed5b3ca60dd67d62926d6c4f856d8ef4ab4be.tar.xz
org.eclipse.cdt-13aed5b3ca60dd67d62926d6c4f856d8ef4ab4be.zip
Fix for 219834: ClosedChannelException when accessing the PDOM
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java
index 5d8b7977983..e15ba768cfa 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java
@@ -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();
}

Back to the top