1 11 package org.eclipse.pde.internal.core; 12 13 import org.eclipse.core.runtime.IPath; 14 15 public class SourceLocation { 16 private IPath path; 17 private boolean userDefined = true; 18 19 public SourceLocation(IPath path) { 20 this.path = path; 21 } 22 23 public IPath getPath() { 24 return path; 25 } 26 27 public void setPath(IPath path) { 28 this.path = path; 29 } 30 31 public boolean isUserDefined() { 32 return userDefined; 33 } 34 35 public void setUserDefined(boolean userDefined) { 36 this.userDefined = userDefined; 37 } 38 39 public String toString() { 40 return path.toOSString(); 41 } 42 43 public boolean equals(Object obj) { 44 if (obj instanceof SourceLocation) { 45 SourceLocation object = (SourceLocation)obj; 46 return object.getPath().equals(path); 47 } 48 return false; 49 } 50 51 } 52 | Popular Tags |