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;
11 protected String type;
13 public LoadPathEntry(IProject aProjectEntry) {
14 project = aProjectEntry;
18 public IPath getPath() {
19 return project.getFullPath();
22 public IProject getProject() {
26 public String getType() {
30 public String toXML() {
31 StringBuffer buffer = new StringBuffer();
33 buffer.append("<pathentry type=\"");
34 buffer.append(type + "\" ");
35 buffer.append("path=\"" + getPath() + "\"/>");
37 return buffer.toString();