X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/test/PHPParserSuperclass.java b/net.sourceforge.phpeclipse/src/test/PHPParserSuperclass.java index bdb5fdf..f612a6c 100644 --- a/net.sourceforge.phpeclipse/src/test/PHPParserSuperclass.java +++ b/net.sourceforge.phpeclipse/src/test/PHPParserSuperclass.java @@ -3,10 +3,12 @@ package test; import java.text.MessageFormat; import java.util.Hashtable; +import net.sourceforge.phpdt.core.IJavaModelMarker; import net.sourceforge.phpdt.internal.compiler.parser.PHPOutlineInfo; import net.sourceforge.phpdt.internal.ui.util.StringUtil; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import net.sourceforge.phpeclipse.actions.PHPStartApacheAction; +import net.sourceforge.phpeclipse.builder.PHPBuilder; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IMarker; @@ -60,7 +62,8 @@ public abstract class PHPParserSuperclass { */ protected static void createMarkers(final String output, final IFile file) throws CoreException { // delete all markers - file.deleteMarkers(IMarker.PROBLEM, false, 0); +// file.deleteMarkers(IMarker.PROBLEM, false, 0); + PHPBuilder.removeProblemsAndTasksFor(file); int indx = 0; int brIndx; @@ -114,7 +117,8 @@ public abstract class PHPParserSuperclass { else attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO)); MarkerUtilities.setLineNumber(attributes, lineNumber); - MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM); +// MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM); + MarkerUtilities.createMarker(file, attributes, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); } } } @@ -176,7 +180,8 @@ public abstract class PHPParserSuperclass { } MarkerUtilities.setCharStart(attributes, charStart); MarkerUtilities.setCharEnd(attributes, charEnd); - MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM); +// MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM); + MarkerUtilities.createMarker(file, attributes, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); } } @@ -196,7 +201,8 @@ public abstract class PHPParserSuperclass { final String location) throws CoreException { if (file != null) { - String markerKind = IMarker.PROBLEM; +// String markerKind = IMarker.PROBLEM; + String markerKind = IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER; final Hashtable attributes = new Hashtable(); MarkerUtilities.setMessage(attributes, message); switch (errorLevel) { @@ -211,7 +217,8 @@ public abstract class PHPParserSuperclass { break; case TASK: attributes.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_INFO)); - markerKind = IMarker.TASK; +// markerKind = IMarker.TASK; + markerKind = IJavaModelMarker.TASK_MARKER; break; } attributes.put(IMarker.LOCATION, location); @@ -278,7 +285,8 @@ public abstract class PHPParserSuperclass { attributes.put(IMarker.LOCATION, location); MarkerUtilities.setCharStart(attributes, charStart); MarkerUtilities.setCharEnd(attributes, charEnd); - MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM); +// MarkerUtilities.createMarker(file, attributes, IMarker.PROBLEM); + MarkerUtilities.createMarker(file, attributes, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); } } }