3.x RC1 compatibility
authorkhartlage <khartlage>
Fri, 4 Jun 2004 16:56:29 +0000 (16:56 +0000)
committerkhartlage <khartlage>
Fri, 4 Jun 2004 16:56:29 +0000 (16:56 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/JavaProject.java

index 21777c4..fcb0e09 100644 (file)
@@ -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(