From b139db871b309027475fd26b12192b48ac1fbf8e Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Thu, 19 Aug 2004 21:12:57 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'cdt_2_0'. Cherrypick from master 2004-08-19 21:12:56 UTC Bogdan Gheorghe 'Fix for Bug 71500: [Indexer] all headers get indexed on project open': core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/CleanEncounteredHeaders.java --- .../indexing/CleanEncounteredHeaders.java | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/CleanEncounteredHeaders.java 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; + } + +}