/********************************************************************** * Copyright (c) 2005-2009 ant4eclipse project team. * * 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: * Nils Hartmann, Daniel Kasmeroglu, Gerd Wuetherich **********************************************************************/ package org.ant4eclipse.lib.cdt.internal.model.project; import org.ant4eclipse.lib.cdt.model.project.CProjectRole; import org.ant4eclipse.lib.platform.model.resource.EclipseProject; import org.ant4eclipse.lib.platform.model.resource.role.AbstractProjectRole; /** * <p> * Implements the c project role. * </p> * * @author Daniel Kasmeroglu (Daniel.Kasmeroglu@Kasisoft.net) */ public class CProjectRoleImpl extends AbstractProjectRole implements CProjectRole { public static final String NAME = "CProjectRole"; /** * <p> * Creates a new instance of type CProjectRole. * </p> * * @param eclipseProject * the eclipse project */ public CProjectRoleImpl(EclipseProject eclipseProject) { super(NAME, eclipseProject); } /** * {@inheritDoc} */ @Override public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("[CProjectRole:"); buffer.append(" NAME: "); buffer.append(NAME); buffer.append("]"); return buffer.toString(); } /** * {@inheritDoc} */ @Override public int hashCode() { int hashCode = super.hashCode(); return hashCode; } /** * {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (!super.equals(o)) { return false; } if (o == null) { return false; } if (o.getClass() != getClass()) { return false; } // CProjectRoleImpl other = (CProjectRoleImpl) o; return true; } } /* ENDCLASS */