blob: 6f10c6fc7295d774060845b6ce1feca7582a24a5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.plugins;
import org.eclipse.core.internal.runtime.CompatibilityHelper;
import org.eclipse.core.internal.runtime.InternalPlatform;
import org.eclipse.core.runtime.IPlatform;
import org.eclipse.core.runtime.IPluginDescriptor;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
public class CompatibilityActivator implements BundleActivator {
public void start(BundleContext context) throws Exception {
IPluginDescriptor descriptor = CompatibilityHelper.getPluginDescriptor(IPlatform.PI_RUNTIME);
CompatibilityHelper.setPlugin(descriptor, InternalPlatform.getDefault().getRuntimeInstance());
}
public void stop(BundleContext context) throws Exception {
//TODO Is there really nothing to do
}
}