1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jdt.launching; 12 13 14 import org.eclipse.core.runtime.IPath; 15 16 /** 17 * Determines if container entries are duplicates/redundant on a runtime 18 * classpath. If an <code>IClasspathContianer</code> implements this interface, 19 * the <code>isDuplicate</code> method is used to determine if containers are 20 * duplicates/redundant. Otherwise, containers with the same identifier are 21 * considered duplicates. 22 * 23 * @since 2.0.1 24 * @deprecated support has been added to <code>ClasspathContainerInitializer</code> 25 * to handle comparison of classpath containers. Use 26 * <code>ClasspathContainerInitializer.getComparisonID(IPath,IJavaProject)</code>. 27 * When a classpath container implements this interface, this interface is 28 * used to determine equality before using the support defined in 29 * <code>ClasspathContainerInitializer</code>. 30 */ 31 public interface IRuntimeContainerComparator { 32 33 /** 34 * Returns whether this container is a duplicate of the container 35 * identified by the given path. 36 * 37 * @param containerPath the container to compare against 38 * @return whether this container is a duplicate of the container 39 * identified by the given path 40 */ 41 public boolean isDuplicate(IPath containerPath); 42 43 } 44