mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 293634 - [breakpoints] ToggleBreakpointAdapter blocks UI thread waiting on the index
This commit is contained in:
parent
a75cc9c45a
commit
64c58d1776
1 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2009 QNX Software Systems and others.
|
||||
* Copyright (c) 2000, 2010 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
|
||||
|
@ -404,8 +404,17 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
|||
}
|
||||
|
||||
@Override
|
||||
public synchronized CElementInfo getElementInfo(IProgressMonitor monitor) throws CModelException {
|
||||
return super.getElementInfo(monitor);
|
||||
public CElementInfo getElementInfo(IProgressMonitor monitor) throws CModelException {
|
||||
CModelManager manager = CModelManager.getDefault();
|
||||
CElementInfo info = (CElementInfo)manager.getInfo(this);
|
||||
if (info != null) {
|
||||
return info;
|
||||
}
|
||||
synchronized (this) {
|
||||
info = createElementInfo();
|
||||
openWhenClosed(info, monitor);
|
||||
}
|
||||
return info;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue