mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
Fix for Bug 172312 - No difference between SKIP_ALL and SKIP_INDEXED mode (follow up)
This commit is contained in:
parent
d686621b48
commit
1f365b4237
2 changed files with 3 additions and 16 deletions
|
@ -18,6 +18,7 @@ import junit.framework.Test;
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import junit.framework.TestSuite;
|
import junit.framework.TestSuite;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.CCorePlugin;
|
||||||
import org.eclipse.cdt.core.dom.IPDOMManager;
|
import org.eclipse.cdt.core.dom.IPDOMManager;
|
||||||
import org.eclipse.cdt.core.model.CModelException;
|
import org.eclipse.cdt.core.model.CModelException;
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
|
@ -87,6 +88,8 @@ public class CModelElementsTests extends TestCase {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// make sure the index is up-to-date
|
||||||
|
assertTrue(CCorePlugin.getIndexManager().joinIndexer(10000, new NullProgressMonitor()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,6 @@ public abstract class IntegratedCModelTest extends TestCase {
|
||||||
private IFile sourceFile;
|
private IFile sourceFile;
|
||||||
private NullProgressMonitor monitor;
|
private NullProgressMonitor monitor;
|
||||||
private boolean structuralParse = false;
|
private boolean structuralParse = false;
|
||||||
private boolean fUseNewModelBuilder= true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -114,19 +113,4 @@ public abstract class IntegratedCModelTest extends TestCase {
|
||||||
this.structuralParse = structuralParse;
|
this.structuralParse = structuralParse;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return whether to use the new model builder or not
|
|
||||||
*/
|
|
||||||
public boolean useNewModelBuilder() {
|
|
||||||
return fUseNewModelBuilder;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set whether to use the new model builder.
|
|
||||||
* @param useNewModelBuilder
|
|
||||||
*/
|
|
||||||
public TestCase setUseNewModelBuilder(boolean useNewModelBuilder) {
|
|
||||||
fUseNewModelBuilder = useNewModelBuilder;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue