blob: 8d034a16f404cb1b6487fd362384ed6855c10ee4 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2008 Oracle
* 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 - initial implementation and ongoing maintenance
******************************************************************************/
package org.eclipse.jst.common.project.facet.core.libprov;
import org.eclipse.wst.common.project.facet.core.IFacetedProjectBase;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
/**
* Contains all of the information available in the context of library provider enablement
* expression. Useful for writing custom property testers.
*
* @author <a href="mailto:konstantin.komissarchik@oracle.com">Konstantin Komissarchik</a>
* @since 1.4
* @noextend
*/
public final class EnablementExpressionContext
{
private final IFacetedProjectBase fproj;
private final IProjectFacetVersion fv;
public EnablementExpressionContext( final IFacetedProjectBase fproj,
final IProjectFacetVersion fv )
{
this.fproj = fproj;
this.fv = fv;
}
public IFacetedProjectBase getFacetedProject()
{
return this.fproj;
}
public IProjectFacet getRequestingProjectFacet()
{
return this.fv.getProjectFacet();
}
public IProjectFacetVersion getRequestingProjectFacetVersion()
{
return this.fv;
}
}