From 1ed58e8410e02124f27008d36575e26a8cd89b7e Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Fri, 22 Feb 2008 12:35:18 +0000 Subject: [PATCH] Fix for 219834: ClosedChannelException when accessing the PDOM --- .../eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java | 4 ++-- 1 file 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 ebbc7b4dd6c..f8a2f7a1919 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(); }