1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

Trigger reconciler on startup after index is loaded, (no bugzilla).

This commit is contained in:
Markus Schorn 2008-01-29 10:42:38 +00:00
parent 5a608fee1c
commit 4f17acd8ad

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2006, 2007 Wind River Systems, Inc. and others. * Copyright (c) 2006, 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
* *
* Contributors: * Contributors:
* Anton Leherbauer (Wind River Systems) - initial API and implementation * Anton Leherbauer (Wind River Systems) - initial API and implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.ui.text; package org.eclipse.cdt.internal.ui.text;
@ -192,7 +193,7 @@ public class CReconciler extends MonoReconciler {
public void elementChanged(ElementChangedEvent event) { public void elementChanged(ElementChangedEvent event) {
if (event.getType() == ElementChangedEvent.POST_CHANGE) { if (event.getType() == ElementChangedEvent.POST_CHANGE) {
if (isRelevantDelta(event.getDelta())) { if (isRelevantDelta(event.getDelta())) {
if (!fIsReconciling && isEditorActive()) { if (!fIsReconciling && isEditorActive() && fInitialProcessDone) {
CReconciler.this.scheduleReconciling(); CReconciler.this.scheduleReconciling();
} else { } else {
setCModelChanged(true); setCModelChanged(true);
@ -243,7 +244,7 @@ public class CReconciler extends MonoReconciler {
if (event.indexerIsIdle()) { if (event.indexerIsIdle()) {
if (fIndexChanged || hasCModelChanged()) { if (fIndexChanged || hasCModelChanged()) {
fIndexChanged= false; fIndexChanged= false;
if (!fIsReconciling && isEditorActive()) { if (!fIsReconciling && isEditorActive() && fInitialProcessDone) {
CReconciler.this.scheduleReconciling(); CReconciler.this.scheduleReconciling();
} else { } else {
setCModelChanged(true); setCModelChanged(true);
@ -383,6 +384,9 @@ public class CReconciler extends MonoReconciler {
protected void initialProcess() { protected void initialProcess() {
super.initialProcess(); super.initialProcess();
fInitialProcessDone= true; fInitialProcessDone= true;
if (!fIsReconciling && isEditorActive() && hasCModelChanged()) {
CReconciler.this.scheduleReconciling();
}
} }
/* /*