mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Use AstProvider.WAIT_ACTIVE_ONLY, related to bug 322753
This commit is contained in:
parent
39f89b5415
commit
0a8dc6f21e
1 changed files with 2 additions and 1 deletions
|
@ -1531,6 +1531,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
|
|||
return getOutlinePage();
|
||||
} else if (required == IShowInTargetList.class) {
|
||||
return new IShowInTargetList() {
|
||||
@SuppressWarnings("deprecation")
|
||||
public String[] getShowInTargetIds() {
|
||||
return new String[] { IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.ID_OUTLINE, IPageLayout.ID_RES_NAV };
|
||||
}
|
||||
|
@ -3588,7 +3589,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
|
|||
|
||||
ICElement inputCElement = getInputCElement();
|
||||
if (provideAST && inputCElement instanceof ITranslationUnit) {
|
||||
ASTProvider.getASTProvider().runOnAST(inputCElement, ASTProvider.WAIT_NO, getProgressMonitor(), new ASTRunnable() {
|
||||
ASTProvider.getASTProvider().runOnAST(inputCElement, ASTProvider.WAIT_ACTIVE_ONLY, 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