mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fixed broken error parser tests.
This commit is contained in:
parent
7bccb394be
commit
d193756141
1 changed files with 5 additions and 5 deletions
|
@ -25,8 +25,8 @@ import java.util.Set;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.CCorePlugin;
|
import org.eclipse.cdt.core.CCorePlugin;
|
||||||
import org.eclipse.cdt.core.ErrorParserManager;
|
|
||||||
import org.eclipse.cdt.core.ErrorParserContext;
|
import org.eclipse.cdt.core.ErrorParserContext;
|
||||||
|
import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.core.IErrorParser;
|
import org.eclipse.cdt.core.IErrorParser;
|
||||||
import org.eclipse.cdt.core.IErrorParserNamed;
|
import org.eclipse.cdt.core.IErrorParserNamed;
|
||||||
import org.eclipse.cdt.core.IMarkerGenerator;
|
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
|
@ -748,10 +748,10 @@ public class ErrorParserExtensionManager {
|
||||||
* @return default error parsers IDs to be used if error parser list is empty.
|
* @return default error parsers IDs to be used if error parser list is empty.
|
||||||
*/
|
*/
|
||||||
public static String[] getDefaultErrorParserIds() {
|
public static String[] getDefaultErrorParserIds() {
|
||||||
if (fDefaultErrorParserIds==null) {
|
if (fDefaultErrorParserIds == null) {
|
||||||
return fAvailableErrorParsers.keySet().toArray(new String[0]);
|
return getErrorParserIds(fAvailableErrorParsers, BUILD);
|
||||||
}
|
}
|
||||||
return fDefaultErrorParserIds.toArray(new String[0]);
|
return fDefaultErrorParserIds.toArray(new String[fDefaultErrorParserIds.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -777,7 +777,7 @@ public class ErrorParserExtensionManager {
|
||||||
int context) {
|
int context) {
|
||||||
Pair<IErrorParserNamed, Integer> pair =
|
Pair<IErrorParserNamed, Integer> pair =
|
||||||
isExtension ? fExtensionErrorParsers.get(id) : fAvailableErrorParsers.get(id);
|
isExtension ? fExtensionErrorParsers.get(id) : fAvailableErrorParsers.get(id);
|
||||||
if (!isInContext(pair, context)) {
|
if (pair == null || !isInContext(pair, context)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
IErrorParserNamed errorParser = pair.first;
|
IErrorParserNamed errorParser = pair.first;
|
||||||
|
|
Loading…
Add table
Reference in a new issue