/******************************************************************************* * Copyright (c) 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.orion.tools; import java.io.File; /** */ public class ProjectInfo { private String id; private File location; /* (non-Javadoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return id.hashCode(); } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ProjectInfo other = (ProjectInfo) obj; return id.equals(other.id); } public ProjectInfo(String id) { this.id = id; } /** * @return the id */ public String getId() { return id; } /** * @return the location */ public File getLocation() { return location; } public void setLocation(File location) { this.location = location; } @Override public String toString() { return id; } }