import net.sourceforge.phpeclipse.resourcesview.PHPFile;
import net.sourceforge.phpeclipse.resourcesview.PHPProject;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
public static IProject[] getPHPProjects() {
List phpProjectsList = new ArrayList();
- IProject[] workspaceProjects = PHPeclipsePlugin.getDefault().getWorkspace().getRoot().getProjects();
+ IProject[] workspaceProjects = PHPeclipsePlugin.getWorkspace().getRoot().getProjects();
for (int i = 0; i < workspaceProjects.length; i++) {
IProject iProject = workspaceProjects[i];
}
public static PHPProject getPHPProject(String name) {
- IProject aProject = PHPeclipsePlugin.getDefault().getWorkspace().getRoot().getProject(name);
+ IProject aProject = PHPeclipsePlugin.getWorkspace().getRoot().getProject(name);
if (isPHPProject(aProject)) {
PHPProject thePHPProject = new PHPProject();
thePHPProject.setProject(aProject);