blob: 398ddce2ce15349de92b1a9b4595172718029353 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2010 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:
* Oracle - initial API and implementation
*******************************************************************************/
package org.eclipse.jpt.core.internal.libprov;
import org.eclipse.core.resources.IProject;
import org.eclipse.jpt.core.JpaFacet;
import org.eclipse.jst.common.project.facet.core.libprov.ILibraryProvider;
import org.eclipse.jst.common.project.facet.core.libprov.LegacyLibraryProviderDetector;
import org.eclipse.jst.common.project.facet.core.libprov.LibraryProviderFramework;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
public class LegacyJpaLibraryProviderDetector
extends LegacyLibraryProviderDetector
{
public static final String LEGACY_JPA_LIBRARY_PROVIDER_ID
= "jpa-legacy-library-provider"; //$NON-NLS-1$
@Override
public ILibraryProvider detect(
final IProject project, final IProjectFacet facet) {
if (facet.equals(JpaFacet.FACET)) {
return LibraryProviderFramework.getProvider(LEGACY_JPA_LIBRARY_PROVIDER_ID);
}
return null;
}
}