mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Externalized index notification job string
This commit is contained in:
parent
87e2ecff89
commit
eebe6d4aeb
4 changed files with 11 additions and 6 deletions
|
@ -12,11 +12,12 @@
|
||||||
|
|
||||||
engine.searching = Searching...
|
engine.searching = Searching...
|
||||||
exception.wrongFormat = Wrong format
|
exception.wrongFormat = Wrong format
|
||||||
process.name = CDT Indexer
|
process.name = C/C++ Indexer
|
||||||
manager.filesToIndex = {0} files to index
|
manager.filesToIndex = {0} files to index
|
||||||
indexerJob = C/C++ Indexer
|
indexerJob = C/C++ Indexer
|
||||||
indexerMarker.prefix= C/C++ Indexer Problem:
|
indexerMarker.prefix= C/C++ Indexer Problem:
|
||||||
indexerMarker.processing= Processing C/C++ Index Markers
|
indexerMarker.processing= Processing C/C++ Index Markers
|
||||||
|
indexNotificationJob=Updating C/C++ Indexer clients
|
||||||
|
|
||||||
convention.illegalIdentifier= Illegal identifier
|
convention.illegalIdentifier= Illegal identifier
|
||||||
convention.invalid= Invalid identifier
|
convention.invalid= Invalid identifier
|
||||||
|
|
|
@ -29,8 +29,8 @@ import org.eclipse.cdt.core.ICLogConstants;
|
||||||
import org.eclipse.cdt.core.index.IIndexChangeListener;
|
import org.eclipse.cdt.core.index.IIndexChangeListener;
|
||||||
import org.eclipse.cdt.core.index.IndexChangeEvent;
|
import org.eclipse.cdt.core.index.IndexChangeEvent;
|
||||||
import org.eclipse.cdt.core.model.ICModelMarker;
|
import org.eclipse.cdt.core.model.ICModelMarker;
|
||||||
import org.eclipse.cdt.core.model.IElementChangedListener;
|
|
||||||
import org.eclipse.cdt.internal.core.CharOperation;
|
import org.eclipse.cdt.internal.core.CharOperation;
|
||||||
|
import org.eclipse.cdt.internal.core.Util;
|
||||||
import org.eclipse.cdt.internal.core.index.IIndex;
|
import org.eclipse.cdt.internal.core.index.IIndex;
|
||||||
import org.eclipse.cdt.internal.core.index.impl.Index;
|
import org.eclipse.cdt.internal.core.index.impl.Index;
|
||||||
import org.eclipse.cdt.internal.core.index.impl.IndexDelta;
|
import org.eclipse.cdt.internal.core.index.impl.IndexDelta;
|
||||||
|
@ -96,7 +96,8 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
* Collection of listeners for indexer deltas
|
* Collection of listeners for indexer deltas
|
||||||
*/
|
*/
|
||||||
protected List indexChangeListeners = Collections.synchronizedList(new ArrayList());
|
protected List indexChangeListeners = Collections.synchronizedList(new ArrayList());
|
||||||
|
public static final String INDEX_NOTIFICATION_NAME = Util.bind( "indexNotificationJob" ); //$NON-NLS-1$
|
||||||
|
|
||||||
public final static String INDEX_MODEL_ID = CCorePlugin.PLUGIN_ID + ".newindexmodel"; //$NON-NLS-1$
|
public final static String INDEX_MODEL_ID = CCorePlugin.PLUGIN_ID + ".newindexmodel"; //$NON-NLS-1$
|
||||||
public final static String ACTIVATION = "enable"; //$NON-NLS-1$
|
public final static String ACTIVATION = "enable"; //$NON-NLS-1$
|
||||||
public final static String PROBLEM_ACTIVATION = "problemEnable"; //$NON-NLS-1$
|
public final static String PROBLEM_ACTIVATION = "problemEnable"; //$NON-NLS-1$
|
||||||
|
@ -832,7 +833,7 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
}
|
}
|
||||||
|
|
||||||
// wrap callbacks with Safe runnable for subsequent listeners to be called when some are causing grief
|
// wrap callbacks with Safe runnable for subsequent listeners to be called when some are causing grief
|
||||||
Job job = new Job("Update Index Listeners"){
|
Job job = new Job(INDEX_NOTIFICATION_NAME){
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
Platform.run(new ISafeRunnable() {
|
Platform.run(new ISafeRunnable() {
|
||||||
public void handleException(Throwable exception) {
|
public void handleException(Throwable exception) {
|
||||||
|
|
|
@ -754,7 +754,10 @@ public class SourceIndexerRequestor implements ISourceElementRequestor, IIndexCo
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldRecordProblem( IProblem problem ){
|
public boolean shouldRecordProblem( IProblem problem ){
|
||||||
return problem.checkCategory( IProblem.PREPROCESSOR_RELATED );
|
if( problem.checkCategory( IProblem.PREPROCESSOR_RELATED ) ){
|
||||||
|
return problem.getID() != IProblem.PREPROCESSOR_CIRCULAR_INCLUSION;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void requestRemoveMarkers(IFile resource, IFile originator ){
|
public void requestRemoveMarkers(IFile resource, IFile originator ){
|
||||||
|
|
|
@ -23,10 +23,10 @@ import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.CCorePlugin;
|
import org.eclipse.cdt.core.CCorePlugin;
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
import org.eclipse.cdt.core.model.IWorkingCopy;
|
import org.eclipse.cdt.core.model.IWorkingCopy;
|
||||||
import org.eclipse.cdt.core.parser.DefaultProblemHandler;
|
|
||||||
import org.eclipse.cdt.core.parser.IParser;
|
import org.eclipse.cdt.core.parser.IParser;
|
||||||
import org.eclipse.cdt.core.parser.IProblem;
|
import org.eclipse.cdt.core.parser.IProblem;
|
||||||
import org.eclipse.cdt.core.parser.IScanner;
|
import org.eclipse.cdt.core.parser.IScanner;
|
||||||
|
|
Loading…
Add table
Reference in a new issue