package dakara.eclipse.plugin.platform;

public class ResourceItem {
	public final String name;
	public final String path;
	public final String project;
	public ResourceItem(String name, String path, String project) {
		this.name = name;
		this.path = path;
		this.project = project;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj == null) return false;
		if (!(obj instanceof ResourceItem)) return false;
		ResourceItem other = (ResourceItem) obj;
		
		if (name.equals(other.name) && path.equals(other.path) && project.equals(other.project)) return true;
		return false;
	}
	
	@Override
	public int hashCode() {
		return name.hashCode() ^ path.hashCode() ^ project.hashCode();
	}
}

@@ -211,16 +211,118 @@
 ject) %7B%0A
+%09%09if (name == null) name = %22%22;%0A%09%09if (path == null) path = %22%22;%0A%09%09if (project == null) project = %22%22;%0A%09%09%0A
 %09%09this.n

handle null condition