blob: 398ddce2ce15349de92b1a9b4595172718029353 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*******************************************************************************
* 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;
}
}
|