Fix for bug #1839622 RSE Path error. You can now create a PHP Project and use RSE...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / LoadPathEntry.java
1 package net.sourceforge.phpeclipse;
2
3 import org.eclipse.core.resources.IProject;
4 import org.eclipse.core.runtime.IPath;
5
6 public class LoadPathEntry {
7         public static final String TYPE_PROJECT = "project";
8
9         protected IProject project;
10
11         protected String type;
12
13         public LoadPathEntry(IProject aProjectEntry) {
14                 project = aProjectEntry;
15                 type = TYPE_PROJECT;
16         }
17
18         public IPath getPath() {
19                 return project.getFullPath();
20         }
21
22         public IProject getProject() {
23                 return project;
24         }
25
26         public String getType() {
27                 return type;
28         }
29
30         public String toXML() {
31                 StringBuffer buffer = new StringBuffer();
32
33                 buffer.append("<pathentry type=\"");
34                 buffer.append(type + "\" ");
35                 buffer.append("path=\"" + getPath() + "\"/>");
36
37                 return buffer.toString();
38         }
39 }