diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/libval/EclipseLinkEclipseLinkBundlesLibraryValidator.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/libval/EclipseLinkEclipseLinkBundlesLibraryValidator.java | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/libval/EclipseLinkEclipseLinkBundlesLibraryValidator.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/libval/EclipseLinkEclipseLinkBundlesLibraryValidator.java deleted file mode 100644 index 548b84f3af..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/internal/libval/EclipseLinkEclipseLinkBundlesLibraryValidator.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2011 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.eclipselink.core.internal.libval; - -import java.util.HashMap; -import java.util.Map; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.jpt.common.core.libprov.JptLibraryProviderInstallOperationConfig; -import org.eclipse.jpt.core.internal.libprov.JpaOsgiBundlesLibraryProviderInstallOperationConfig; -import org.eclipse.jpt.core.internal.libval.AbstractOsgiBundlesLibraryValidator; -import org.eclipse.jpt.core.platform.JpaPlatformDescription; -import org.eclipse.jpt.eclipselink.core.platform.EclipseLinkPlatform; -import org.eclipse.osgi.service.resolver.VersionRange; - -public class EclipseLinkEclipseLinkBundlesLibraryValidator - extends AbstractOsgiBundlesLibraryValidator { - - public IStatus validate(JptLibraryProviderInstallOperationConfig config) { - JpaOsgiBundlesLibraryProviderInstallOperationConfig jpaConfig - = (JpaOsgiBundlesLibraryProviderInstallOperationConfig) config; - Map<String, VersionRange[]> bundleVersionRanges = new HashMap<String, VersionRange[]>(); - JpaPlatformDescription platform = jpaConfig.getJpaPlatform(); - if (EclipseLinkPlatform.VERSION_1_0.equals(platform)) { - bundleVersionRanges.put( - "org.eclipse.persistence.core", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.0, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.jpa", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.0, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.asm", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.0, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.antlr", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.0, 3.0)")}); //$NON-NLS-1$ - } - else if (EclipseLinkPlatform.VERSION_1_1.equals(platform)) { - bundleVersionRanges.put( - "org.eclipse.persistence.core", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.1, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.jpa", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.1, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.asm", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.1, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.antlr", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.1, 3.0)")}); //$NON-NLS-1$ - } - else if (EclipseLinkPlatform.VERSION_1_2.equals(platform)) { - bundleVersionRanges.put( - "org.eclipse.persistence.core", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.2, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.jpa", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.2, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.asm", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.2, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.antlr", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[1.2, 3.0)")}); //$NON-NLS-1$ - } - else if (EclipseLinkPlatform.VERSION_2_0.equals(platform)) { - bundleVersionRanges.put( - "org.eclipse.persistence.core", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.0, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.jpa", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.0, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.asm", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.0, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.antlr", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.0, 3.0)")}); //$NON-NLS-1$ - } - else if (EclipseLinkPlatform.VERSION_2_1.equals(platform)) { - bundleVersionRanges.put( - "org.eclipse.persistence.core", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.1, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.jpa", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.1, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.asm", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.1, 3.0)")}); //$NON-NLS-1$ - bundleVersionRanges.put( - "org.eclipse.persistence.antlr", //$NON-NLS-1$ - new VersionRange[] {new VersionRange("[2.1, 3.0)")}); //$NON-NLS-1$ - } - return validate(jpaConfig, bundleVersionRanges); - } -} |