1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Use the new fields in IMarkerGenerator

This commit is contained in:
Alain Magloire 2002-10-23 18:22:10 +00:00
parent d9252999b4
commit de2df1266e
4 changed files with 20 additions and 20 deletions

View file

@ -5,10 +5,10 @@ package org.eclipse.cdt.internal.errorparsers;
* All Rights Reserved.
*/
import org.eclipse.cdt.errorparsers.ErrorParserManager;
import org.eclipse.cdt.errorparsers.IErrorParser;
import org.eclipse.cdt.core.ErrorParserManager;
import org.eclipse.cdt.core.IErrorParser;
import org.eclipse.cdt.core.IMarkerGenerator;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
public class GASErrorParser implements IErrorParser {
@ -22,7 +22,7 @@ public class GASErrorParser implements IErrorParser {
String fileName = "";
IFile file = null;
int num = 0;
int severity = IMarker.SEVERITY_ERROR;
int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
String desc = line;
if (previous != null && previous.startsWith("Assembler")) {
if (! line.startsWith("FATAL")) {

View file

@ -5,10 +5,10 @@ package org.eclipse.cdt.internal.errorparsers;
* All Rights Reserved.
*/
import org.eclipse.cdt.errorparsers.ErrorParserManager;
import org.eclipse.cdt.errorparsers.IErrorParser;
import org.eclipse.cdt.core.ErrorParserManager;
import org.eclipse.cdt.core.IErrorParser;
import org.eclipse.cdt.core.IMarkerGenerator;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
public class GCCErrorParser implements IErrorParser {
@ -40,7 +40,7 @@ public class GCCErrorParser implements IErrorParser {
String lineNumber = line.substring(firstColon + 1, secondColon);
String varName = null;
String desc = line.substring(secondColon + 1).trim();
int severity = IMarker.SEVERITY_ERROR;
int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
int num = 0;
try {
@ -126,14 +126,14 @@ public class GCCErrorParser implements IErrorParser {
}
}
if (desc.startsWith("warning") || desc.startsWith("Warning")) {
severity = IMarker.SEVERITY_WARNING;
severity = IMarkerGenerator.SEVERITY_WARNING;
}
eoParser.generateMarker(file, num, desc, severity, varName);
}
} catch (StringIndexOutOfBoundsException e) {
} catch (NumberFormatException e) {
}
}
}
return false;
}
}

View file

@ -5,10 +5,10 @@ package org.eclipse.cdt.internal.errorparsers;
* All Rights Reserved.
*/
import org.eclipse.cdt.errorparsers.ErrorParserManager;
import org.eclipse.cdt.errorparsers.IErrorParser;
import org.eclipse.cdt.core.ErrorParserManager;
import org.eclipse.cdt.core.IErrorParser;
import org.eclipse.cdt.core.IMarkerGenerator;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
public class GLDErrorParser implements IErrorParser {
@ -44,14 +44,14 @@ public class GLDErrorParser implements IErrorParser {
if (file == null) {
desc = fileName + " " + desc;
}
eoParser.generateMarker(file, 0, desc, IMarker.SEVERITY_ERROR, null);
eoParser.generateMarker(file, 0, desc, IMarkerGenerator.SEVERITY_ERROR_RESOURCE, null);
} else if (buf.endsWith("ld")){
String fileName = line.substring(0, firstColon);
IFile file = eoParser.findFilePath(fileName);
if (file == null) {
desc = fileName + " " + desc;
}
eoParser.generateMarker(file, 0, desc, IMarker.SEVERITY_ERROR, null);
eoParser.generateMarker(file, 0, desc, IMarkerGenerator.SEVERITY_ERROR_RESOURCE, null);
}
}
return false;

View file

@ -8,10 +8,10 @@ package org.eclipse.cdt.internal.errorparsers;
import java.io.File;
import java.util.StringTokenizer;
import org.eclipse.cdt.errorparsers.ErrorParserManager;
import org.eclipse.cdt.errorparsers.IErrorParser;
import org.eclipse.cdt.core.ErrorParserManager;
import org.eclipse.cdt.core.IErrorParser;
import org.eclipse.cdt.core.IMarkerGenerator;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
public class VCErrorParser implements IErrorParser {
@ -37,9 +37,9 @@ public class VCErrorParser implements IErrorParser {
if (file == null) {
desc= "*" + desc;
}
int severity= IMarker.SEVERITY_ERROR;
int severity= IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
if (desc.startsWith("warning")) {
severity= IMarker.SEVERITY_WARNING;
severity= IMarkerGenerator.SEVERITY_WARNING;
}
eoParser.generateMarker(file, num, desc, severity, null);
return true;