import java.util.Iterator;
-import net.sourceforge.phpeclipse.phpeditor.PHPParser;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.action.IAction;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
+
public class PHPExternalParserAction implements IObjectActionDelegate {
private IWorkbenchPart workbenchPart;
// check if it's a file resource
switch (resource.getType()) {
-
+
case IResource.FILE :
// single file:
- IFile file = (IFile) resource;
- PHPParser.phpExternalParse(file);
+ ExternalPHPParser parser = new ExternalPHPParser((IFile)resource);
+ parser.phpExternalParse();
}
}
}