/********************************************************************** * 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.jdt.internal.tools.classpathentry; import org.ant4eclipse.lib.jdt.model.ClasspathEntry; import org.ant4eclipse.lib.jdt.model.project.RawClasspathEntry; import org.ant4eclipse.lib.jdt.tools.container.ClasspathResolverContext; /** * <p> * Implements a {@link ClasspathEntryResolver} to resolve class path entries of kind 'output'. Due to the fact the the * output locations of eclipse java project are already resolved by the {@link SourceClasspathEntryResolver}, this * {@link ClasspathEntryResolver} implements a simple NOOP. * </p> * * @author Gerd Wütherich (gerd@gerd-wuetherich.de) */ public class OutputClasspathEntryResolver extends AbstractClasspathEntryResolver { /** * {@inheritDoc} */ public boolean canResolve(ClasspathEntry entry) { // only suitable for raw class path entries of kind CPE_OUTPUT return isRawClasspathEntryOfKind(entry, RawClasspathEntry.CPE_OUTPUT); } /** * {@inheritDoc} */ public void resolve(ClasspathEntry entry, ClasspathResolverContext context) { // nothing to do here - handled within the Source Handler } }