1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

further changes for 232155

This commit is contained in:
Chris Recoskie 2008-05-16 14:18:46 +00:00
parent 54ab181228
commit e47eee7e34

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
@ -12,6 +12,7 @@
package org.eclipse.cdt.internal.core.indexer; package org.eclipse.cdt.internal.core.indexer;
import java.text.MessageFormat;
import java.text.NumberFormat; import java.text.NumberFormat;
import java.util.Collection; import java.util.Collection;
import java.util.Iterator; import java.util.Iterator;
@ -25,7 +26,6 @@ import org.eclipse.cdt.internal.core.pdom.IndexerProgress;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.Status;
import org.eclipse.osgi.util.NLS;
/** /**
* A task for index updates. * A task for index updates.
@ -191,10 +191,10 @@ public abstract class StandaloneIndexerTask extends AbstractIndexerTask {
// TODO: find a way to do non-OSGi NLS // TODO: find a way to do non-OSGi NLS
switch(kind) { switch(kind) {
case parsingFileTask: case parsingFileTask:
return NLS.bind("parsing {0} ({1})", arguments); //$NON-NLS-1$ return MessageFormat.format("parsing {0} ({1})", arguments); //$NON-NLS-1$
case errorWhileParsing: case errorWhileParsing:
return NLS.bind("Error while parsing {0}.", arguments); //$NON-NLS-1$ return MessageFormat.format("Error while parsing {0}.", arguments); //$NON-NLS-1$
case tooManyIndexProblems: case tooManyIndexProblems:
return "Too many errors while indexing, stopping indexer."; //$NON-NLS-1$ return "Too many errors while indexing, stopping indexer."; //$NON-NLS-1$