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