mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Use the new fields in IMarkerGenerator
This commit is contained in:
parent
d9252999b4
commit
de2df1266e
4 changed files with 20 additions and 20 deletions
|
@ -5,10 +5,10 @@ package org.eclipse.cdt.internal.errorparsers;
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.eclipse.cdt.errorparsers.ErrorParserManager;
|
import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.errorparsers.IErrorParser;
|
import org.eclipse.cdt.core.IErrorParser;
|
||||||
|
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IMarker;
|
|
||||||
|
|
||||||
public class GASErrorParser implements IErrorParser {
|
public class GASErrorParser implements IErrorParser {
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ public class GASErrorParser implements IErrorParser {
|
||||||
String fileName = "";
|
String fileName = "";
|
||||||
IFile file = null;
|
IFile file = null;
|
||||||
int num = 0;
|
int num = 0;
|
||||||
int severity = IMarker.SEVERITY_ERROR;
|
int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
|
||||||
String desc = line;
|
String desc = line;
|
||||||
if (previous != null && previous.startsWith("Assembler")) {
|
if (previous != null && previous.startsWith("Assembler")) {
|
||||||
if (! line.startsWith("FATAL")) {
|
if (! line.startsWith("FATAL")) {
|
||||||
|
|
|
@ -5,10 +5,10 @@ package org.eclipse.cdt.internal.errorparsers;
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.eclipse.cdt.errorparsers.ErrorParserManager;
|
import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.errorparsers.IErrorParser;
|
import org.eclipse.cdt.core.IErrorParser;
|
||||||
|
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IMarker;
|
|
||||||
|
|
||||||
public class GCCErrorParser implements IErrorParser {
|
public class GCCErrorParser implements IErrorParser {
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ public class GCCErrorParser implements IErrorParser {
|
||||||
String lineNumber = line.substring(firstColon + 1, secondColon);
|
String lineNumber = line.substring(firstColon + 1, secondColon);
|
||||||
String varName = null;
|
String varName = null;
|
||||||
String desc = line.substring(secondColon + 1).trim();
|
String desc = line.substring(secondColon + 1).trim();
|
||||||
int severity = IMarker.SEVERITY_ERROR;
|
int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
|
||||||
int num = 0;
|
int num = 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -126,7 +126,7 @@ public class GCCErrorParser implements IErrorParser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (desc.startsWith("warning") || desc.startsWith("Warning")) {
|
if (desc.startsWith("warning") || desc.startsWith("Warning")) {
|
||||||
severity = IMarker.SEVERITY_WARNING;
|
severity = IMarkerGenerator.SEVERITY_WARNING;
|
||||||
}
|
}
|
||||||
eoParser.generateMarker(file, num, desc, severity, varName);
|
eoParser.generateMarker(file, num, desc, severity, varName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,10 @@ package org.eclipse.cdt.internal.errorparsers;
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.eclipse.cdt.errorparsers.ErrorParserManager;
|
import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.errorparsers.IErrorParser;
|
import org.eclipse.cdt.core.IErrorParser;
|
||||||
|
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IMarker;
|
|
||||||
|
|
||||||
public class GLDErrorParser implements IErrorParser {
|
public class GLDErrorParser implements IErrorParser {
|
||||||
|
|
||||||
|
@ -44,14 +44,14 @@ public class GLDErrorParser implements IErrorParser {
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
desc = fileName + " " + desc;
|
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")){
|
} else if (buf.endsWith("ld")){
|
||||||
String fileName = line.substring(0, firstColon);
|
String fileName = line.substring(0, firstColon);
|
||||||
IFile file = eoParser.findFilePath(fileName);
|
IFile file = eoParser.findFilePath(fileName);
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
desc = fileName + " " + desc;
|
desc = fileName + " " + desc;
|
||||||
}
|
}
|
||||||
eoParser.generateMarker(file, 0, desc, IMarker.SEVERITY_ERROR, null);
|
eoParser.generateMarker(file, 0, desc, IMarkerGenerator.SEVERITY_ERROR_RESOURCE, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -8,10 +8,10 @@ package org.eclipse.cdt.internal.errorparsers;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.StringTokenizer;
|
import java.util.StringTokenizer;
|
||||||
|
|
||||||
import org.eclipse.cdt.errorparsers.ErrorParserManager;
|
import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.errorparsers.IErrorParser;
|
import org.eclipse.cdt.core.IErrorParser;
|
||||||
|
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IMarker;
|
|
||||||
|
|
||||||
public class VCErrorParser implements IErrorParser {
|
public class VCErrorParser implements IErrorParser {
|
||||||
|
|
||||||
|
@ -37,9 +37,9 @@ public class VCErrorParser implements IErrorParser {
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
desc= "*" + desc;
|
desc= "*" + desc;
|
||||||
}
|
}
|
||||||
int severity= IMarker.SEVERITY_ERROR;
|
int severity= IMarkerGenerator.SEVERITY_ERROR_RESOURCE;
|
||||||
if (desc.startsWith("warning")) {
|
if (desc.startsWith("warning")) {
|
||||||
severity= IMarker.SEVERITY_WARNING;
|
severity= IMarkerGenerator.SEVERITY_WARNING;
|
||||||
}
|
}
|
||||||
eoParser.generateMarker(file, num, desc, severity, null);
|
eoParser.generateMarker(file, num, desc, severity, null);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue