blob: 214dbb8d5229d39cc67cf5459f7dd0bbd1d5c5ab [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2005-2007 BEA Systems, Inc.
* 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:
* Konstantin Komissarchik
******************************************************************************/
package org.eclipse.wst.common.project.facet.ui.internal;
import java.util.Set;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
/**
* @author <a href="mailto:kosta@bea.com">Konstantin Komissarchik</a>
*/
public final class ConflictingFacetsFilter
implements FacetsSelectionPanel.IFilter
{
private final Set<IProjectFacet> fixed;
public ConflictingFacetsFilter( final Set<IProjectFacet> fixed )
{
this.fixed = fixed;
}
public boolean check( final IProjectFacetVersion fv )
{
return fv.isValidFor( this.fixed );
}
}