From: khartlage Date: Fri, 4 Jun 2004 16:56:29 +0000 (+0000) Subject: 3.x RC1 compatibility X-Git-Url: http://secure.phpeclipse.com?hp=c9b2bded06ef7d86f68a8d62dd9dd11f104190e3 3.x RC1 compatibility --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/JavaProject.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/JavaProject.java index 21777c4..fcb0e09 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/JavaProject.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/JavaProject.java @@ -80,6 +80,7 @@ import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Preferences; import org.eclipse.core.runtime.QualifiedName; + import net.sourceforge.phpdt.internal.core.ClasspathEntry; import net.sourceforge.phpdt.internal.core.XMLWriter; import org.w3c.dom.Document; @@ -1657,7 +1658,19 @@ public class JavaProject return project; } - + /** + * Sets the underlying kernel project of this Java project, + * and fills in its parent and name. + * Called by IProject.getNature(). + * + * @see IProjectNature#setProject(IProject) + */ + public void setProject(IProject project) { + + this.project = project; + this.parent = JavaModelManager.getJavaModelManager().getJavaModel(); + this.name = project.getName(); + } protected IProject getProject(String name) { return PHPeclipsePlugin.getWorkspace().getRoot().getProject(name); } @@ -2403,20 +2416,6 @@ public class JavaProject } /** - * Sets the underlying kernel project of this Java project, - * and fills in its parent and name. - * Called by IProject.getNature(). - * - * @see IProjectNature#setProject - */ - public void setProject(IProject project) { - - project = project; - parent = JavaModelManager.getJavaModelManager().getJavaModel(); - name = project.getName(); - } - - /** * @see IJavaProject */ public void setRawClasspath(