mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix to 53253
This commit is contained in:
parent
e73afe6adb
commit
4eab4a897e
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-03-03 Alain Magloire
|
||||||
|
|
||||||
|
From Sean Sevoy. Fix to VCErrorParser.java
|
||||||
|
PR 53253.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/internal/errorparsers/VCErrorParser.java
|
||||||
|
|
||||||
2004-03-03 Hoda Amer
|
2004-03-03 Hoda Amer
|
||||||
A fix for getChildren() to check if the getElementInfo() is null
|
A fix for getChildren() to check if the getElementInfo() is null
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,9 @@ import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.core.IErrorParser;
|
import org.eclipse.cdt.core.IErrorParser;
|
||||||
import org.eclipse.cdt.core.IMarkerGenerator;
|
import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
|
|
||||||
public class VCErrorParser implements IErrorParser {
|
public class VCErrorParser implements IErrorParser {
|
||||||
|
|
||||||
public boolean processLine(String line, ErrorParserManager eoParser) {
|
public boolean processLine(String line, ErrorParserManager eoParser) {
|
||||||
// msdev: filname(linenumber) : error/warning error_desc
|
// msdev: filname(linenumber) : error/warning error_desc
|
||||||
int firstColon = line.indexOf(':');
|
int firstColon = line.indexOf(':');
|
||||||
|
@ -28,6 +30,9 @@ public class VCErrorParser implements IErrorParser {
|
||||||
} catch (SecurityException e) {
|
} catch (SecurityException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (firstColon != -1) {
|
||||||
String firstPart = line.substring(0, firstColon);
|
String firstPart = line.substring(0, firstColon);
|
||||||
StringTokenizer tok = new StringTokenizer(firstPart, "()"); //$NON-NLS-1$
|
StringTokenizer tok = new StringTokenizer(firstPart, "()"); //$NON-NLS-1$
|
||||||
if (tok.hasMoreTokens()) {
|
if (tok.hasMoreTokens()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue