import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
-import test.PHPParserSuperclass;
public class PHPExternalParserAction implements IObjectActionDelegate {
// check if it's a file resource
switch (resource.getType()) {
-
+
case IResource.FILE :
// single file:
- IFile file = (IFile) resource;
- PHPParserSuperclass.phpExternalParse(file);
+ ExternalPHPParser parser = new ExternalPHPParser((IFile)resource);
+ parser.phpExternalParse();
}
}
}