Contributors:
IBM Corporation - Initial implementation
- Klaus Hartlage - www.eclipseproject.de
+ www.phpeclipse.de
**********************************************************************/
package net.sourceforge.phpeclipse.actions;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IActionDelegate;
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();
}
}
}