1 package net.sourceforge.phpeclipse;
3 import org.eclipse.core.resources.IProject;
4 import org.eclipse.core.runtime.IPath;
6 public class LoadPathEntry {
7 public static final String TYPE_PROJECT = "project";
9 protected IProject project;
10 protected String type;
12 public LoadPathEntry(IProject aProjectEntry) {
13 project = aProjectEntry;
17 public IPath getPath() {
18 return project.getFullPath();
21 public IProject getProject() {
25 public String getType() {
29 public String toXML() {
30 StringBuffer buffer = new StringBuffer();
32 buffer.append("<pathentry type=\"");
33 buffer.append(type + "\" ");
34 buffer.append("path=\"" + getPath() + "\"/>");
36 return buffer.toString();