import org.eclipse.core.runtime.IPath;
public class LoadPathEntry {
- public static final String TYPE_PROJECT = "project";
+ public static final String TYPE_PROJECT = "project";
- protected IProject project;
- protected String type;
+ protected IProject project;
- public LoadPathEntry(IProject aProjectEntry) {
- project = aProjectEntry;
- type = TYPE_PROJECT;
- }
+ protected String type;
- public IPath getPath() {
- return project.getFullPath();
- }
+ public LoadPathEntry(IProject aProjectEntry) {
+ project = aProjectEntry;
+ type = TYPE_PROJECT;
+ }
- public IProject getProject() {
- return project;
- }
+ public IPath getPath() {
+ return project.getFullPath();
+ }
- public String getType() {
- return type;
- }
+ public IProject getProject() {
+ return project;
+ }
- public String toXML() {
- StringBuffer buffer = new StringBuffer();
+ public String getType() {
+ return type;
+ }
- buffer.append("<pathentry type=\"");
- buffer.append(type + "\" ");
- buffer.append("path=\"" + getPath() + "\"/>");
+ public String toXML() {
+ StringBuffer buffer = new StringBuffer();
- return buffer.toString();
- }
+ buffer.append("<pathentry type=\"");
+ buffer.append(type + "\" ");
+ buffer.append("path=\"" + getPath() + "\"/>");
+
+ return buffer.toString();
+ }
}