Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat Booth2015-02-18 09:04:19 +0000
committerMat Booth2015-02-18 11:39:12 +0000
commit1bf1c17ab4070679d47112a2a69ba3967e27c508 (patch)
treebf44f19769d46dc6b378b88c1c6c113606412df6 /examples
parent742a91ab0e685b1370753c5182035ce6027c22eb (diff)
downloadeclipse.platform.team-1bf1c17ab4070679d47112a2a69ba3967e27c508.tar.gz
eclipse.platform.team-1bf1c17ab4070679d47112a2a69ba3967e27c508.tar.xz
eclipse.platform.team-1bf1c17ab4070679d47112a2a69ba3967e27c508.zip
Bug 394739 - Remove org.eclipse.core.runtime.compatibility* bundles
Change-Id: Iacc036e92d43a5bca1a727f2dd203d1a39692f9a Signed-off-by: Mat Booth <mat.booth@redhat.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.compare.examples/META-INF/MANIFEST.MF3
-rw-r--r--examples/org.eclipse.team.examples.filesystem/META-INF/MANIFEST.MF5
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemPlugin.java14
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/pessimistic/PessimisticFilesystemProviderPlugin.java24
4 files changed, 18 insertions, 28 deletions
diff --git a/examples/org.eclipse.compare.examples/META-INF/MANIFEST.MF b/examples/org.eclipse.compare.examples/META-INF/MANIFEST.MF
index 70c9503ae..de25d5ac9 100644
--- a/examples/org.eclipse.compare.examples/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.compare.examples/META-INF/MANIFEST.MF
@@ -3,7 +3,6 @@ Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.compare.examples; singleton:=true
Bundle-Version: 3.1.400.qualifier
-Bundle-Activator: org.eclipse.core.internal.compatibility.PluginActivator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.compare.examples.structurecreator
@@ -11,6 +10,6 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.core.resources,
org.eclipse.compare,
org.eclipse.jface.text,
- org.eclipse.core.runtime.compatibility
+ org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.4
diff --git a/examples/org.eclipse.team.examples.filesystem/META-INF/MANIFEST.MF b/examples/org.eclipse.team.examples.filesystem/META-INF/MANIFEST.MF
index 288a21f65..8649ef533 100644
--- a/examples/org.eclipse.team.examples.filesystem/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.team.examples.filesystem/META-INF/MANIFEST.MF
@@ -3,7 +3,6 @@ Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.team.examples.filesystem; singleton:=true
Bundle-Version: 3.4.300.qualifier
-Bundle-Activator: org.eclipse.core.internal.compatibility.PluginActivator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.team.examples.filesystem,
@@ -17,7 +16,7 @@ Export-Package: org.eclipse.team.examples.filesystem,
org.eclipse.team.examples.model.ui.mapping,
org.eclipse.team.examples.pessimistic,
org.eclipse.team.examples.pessimistic.ui
-Require-Bundle: org.eclipse.core.runtime.compatibility,
+Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui.ide;resolution:=optional,
org.eclipse.ui.views;resolution:=optional,
org.eclipse.jface.text;resolution:=optional,
@@ -31,5 +30,5 @@ Require-Bundle: org.eclipse.core.runtime.compatibility,
org.eclipse.core.filesystem,
org.eclipse.ui.navigator
Bundle-ActivationPolicy: lazy
-Plugin-Class: org.eclipse.team.examples.filesystem.FileSystemPlugin
+Bundle-Activator: org.eclipse.team.examples.filesystem.FileSystemPlugin
Bundle-RequiredExecutionEnvironment: J2SE-1.4
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemPlugin.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemPlugin.java
index 53b3c39a0..858c4b3b5 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemPlugin.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemPlugin.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 IBM Corporation and others.
* 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
@@ -51,15 +51,13 @@ public class FileSystemPlugin extends AbstractUIPlugin {
/**
* Override the standard plugin constructor.
- *
- * @param descriptor the plugin descriptor
*/
- public FileSystemPlugin(IPluginDescriptor descriptor) {
- super(descriptor);
+ public FileSystemPlugin() {
+ super();
// record this instance as the singleton
plugin = this;
// Instanctiate pessimistic provider
- pessPlugin = new PessimisticFilesystemProviderPlugin(descriptor);
+ pessPlugin = new PessimisticFilesystemProviderPlugin();
}
/**
@@ -120,7 +118,7 @@ public class FileSystemPlugin extends AbstractUIPlugin {
public void start(BundleContext context) throws Exception {
super.start(context);
//Call startup on the Pessimistic Plugin
- pessPlugin.startup();
+ pessPlugin.start(context);
tracker = new PluginManifestChangeTracker();
tracker.start();
}
@@ -128,7 +126,7 @@ public class FileSystemPlugin extends AbstractUIPlugin {
public void stop(BundleContext context) throws Exception {
try {
if (pessPlugin != null)
- pessPlugin.shutdown();
+ pessPlugin.stop(context);
} finally {
super.stop(context);
}
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/pessimistic/PessimisticFilesystemProviderPlugin.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/pessimistic/PessimisticFilesystemProviderPlugin.java
index 407729815..91b8b39f3 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/pessimistic/PessimisticFilesystemProviderPlugin.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/pessimistic/PessimisticFilesystemProviderPlugin.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 IBM Corporation and others.
* 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
@@ -15,12 +15,10 @@ import java.util.Iterator;
import java.util.List;
import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
/**
* The plugin for the <code>PessimisticFilesystemProvider</code>.
@@ -52,8 +50,8 @@ public class PessimisticFilesystemProviderPlugin extends AbstractUIPlugin {
/**
* Constructor required by plugin lifecycle.
*/
- public PessimisticFilesystemProviderPlugin(IPluginDescriptor pluginDescriptor) {
- super(pluginDescriptor);
+ public PessimisticFilesystemProviderPlugin() {
+ super();
instance = this;
fListeners= new ArrayList(1);
//setDebugging(true);
@@ -103,25 +101,21 @@ public class PessimisticFilesystemProviderPlugin extends AbstractUIPlugin {
/**
* Starts the resource listener.
- *
- * @see Plugin#startup()
*/
- public void startup() throws CoreException {
+ public void start(BundleContext context) throws Exception {
fListener= new ResourceChangeListener();
fListener.startup();
initializeDefaultPreferences();
- super.startup();
+ super.start(context);
}
/**
* Stops the resource listener.
- *
- * @see Plugin#startup()
*/
- public void shutdown() throws CoreException {
+ public void stop(BundleContext context) throws Exception {
fListener.shutdown();
fListener= null;
- super.shutdown();
+ super.stop(context);
}
/**
@@ -161,4 +155,4 @@ public class PessimisticFilesystemProviderPlugin extends AbstractUIPlugin {
public void removeProviderListener(IResourceStateListener listener) {
fListeners.remove(listener);
}
-} \ No newline at end of file
+}

Back to the top