blob: ea2ba3e1e520a6a62837d9e37ebb33fed2ab6914 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2008 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.wst.jsdt.launching;
import org.eclipse.core.runtime.IPath;
/**
* Determines if container entries are duplicates/redundant on a runtime
* classpath. If an <code>IClasspathContianer</code> implements this interface,
* the <code>isDuplicate</code> method is used to determine if containers are
* duplicates/redundant. Otherwise, containers with the same identifier are
* considered duplicates.
*
* @since 2.0.1
* @deprecated support has been added to <code>JsGlobalScopeContainerInitializer</code>
* to handle comparison of classpath containers. Use
* <code>JsGlobalScopeContainerInitializer.getComparisonID(IPath,IJavaScriptProject)</code>.
* When a classpath container implements this interface, this interface is
* used to determine equality before using the support defined in
* <code>JsGlobalScopeContainerInitializer</code>.
*
* Provisional API: This class/interface is part of an interim API that is still under development and expected to
* change significantly before reaching stability. It is being made available at this early stage to solicit feedback
* from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
* (repeatedly) as the API evolves.
*/
public interface IRuntimeContainerComparator {
/**
* Returns whether this container is a duplicate of the container
* identified by the given path.
*
* @param containerPath the container to compare against
* @return whether this container is a duplicate of the container
* identified by the given path
*/
public boolean isDuplicate(IPath containerPath);
}