import java.util.List;
import net.sourceforge.phpdt.internal.compiler.util.Util;
+import net.sourceforge.phpdt.internal.core.builder.PHPBuilder;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.IEditorInput;
public static void parseFile(IFile fileToParse) {
boolean phpFlag = false;
- try {
+// try {
if (fileToParse == null) {
// TODO should never happen => should throw an exception
if (phpFlag) {
IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
if (store.getString(PHPeclipsePlugin.PHP_PARSER_DEFAULT).equals(PHPeclipsePlugin.PHP_INTERNAL_PARSER)) {
- // first delete all the previous markers
- fileToParse.deleteMarkers(IMarker.PROBLEM, false, 0);
-
- //the tasks are removed here
- fileToParse.deleteMarkers(IMarker.TASK, false, 0);
-
+// // first delete all the previous markers
+// fileToParse.deleteMarkers(IMarker.PROBLEM, false, 0);
+//
+// //the tasks are removed here
+// fileToParse.deleteMarkers(IMarker.TASK, false, 0);
+ PHPBuilder.removeProblemsAndTasksFor(fileToParse);
// try {
// InputStream iStream = fileToParse.getContents();
parse(fileToParse); //, iStream);
PHPParserSuperclass.phpExternalParse(fileToParse);
}
}
- } catch (CoreException e) {
- }
+// } catch (CoreException e) {
+// }
}
/**