blob: 3c3bef961846f1fc5df98f332b07511099b4ae83 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 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.facet;
import org.eclipse.core.resources.IProject;
import org.eclipse.jpt.core.JptCorePlugin;
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.getId().equals(JptCorePlugin.FACET_ID)) {
return LibraryProviderFramework.getProvider(LEGACY_JPA_LIBRARY_PROVIDER_ID);
}
return null;
}
}