diff --git a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/CleanEncounteredHeaders.java b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/CleanEncounteredHeaders.java new file mode 100644 index 00000000000..ee2b67d0a70 --- /dev/null +++ b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/CleanEncounteredHeaders.java @@ -0,0 +1,56 @@ +/* + * Created on Aug 19, 2004 + * + * TODO To change the template for this generated file go to + * Window - Preferences - Java - Code Style - Code Templates + */ +package org.eclipse.cdt.internal.core.search.indexing; + +import org.eclipse.cdt.internal.core.search.processing.IJob; +import org.eclipse.core.runtime.IProgressMonitor; + +/** + * @author bgheorgh + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class CleanEncounteredHeaders implements IJob { + + IndexManager manager = null; + + public CleanEncounteredHeaders(IndexManager manager){ + this.manager = manager; + } + /* (non-Javadoc) + * @see org.eclipse.cdt.internal.core.search.processing.IJob#execute(org.eclipse.core.runtime.IProgressMonitor) + */ + public boolean execute(IProgressMonitor progress) { + + //Clean out the headers + this.manager.resetEncounteredHeaders(); + return true; + } + /* (non-Javadoc) + * @see org.eclipse.cdt.internal.core.search.processing.IJob#belongsTo(java.lang.String) + */ + public boolean belongsTo(String jobFamily) { + // TODO Auto-generated method stub + return false; + } + /* (non-Javadoc) + * @see org.eclipse.cdt.internal.core.search.processing.IJob#cancel() + */ + public void cancel() { + // TODO Auto-generated method stub + + } + /* (non-Javadoc) + * @see org.eclipse.cdt.internal.core.search.processing.IJob#isReadyToRun() + */ + public boolean isReadyToRun() { + // TODO Auto-generated method stub + return true; + } + +}