From 2af36f4f31ab29ff506ee65a7194239023209e76 Mon Sep 17 00:00:00 2001 From: khartlage Date: Fri, 4 Jun 2004 16:56:29 +0000 Subject: [PATCH 1/1] 3.x RC1 compatibility --- .../phpdt/internal/core/JavaProject.java | 29 +++++++++---------- 1 files changed, 14 insertions(+), 15 deletions(-) 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( -- 1.7.1