Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorslewis2007-03-14 23:10:27 +0000
committerslewis2007-03-14 23:10:27 +0000
commit2a4868f35ff54ceb50d9d6972e32aa02f02337db (patch)
tree5ec565ea763a998258725c536459d5e60ba27e78 /doc
parenteab2de46e061652128fe8456da1490d9a73a60d0 (diff)
downloadorg.eclipse.ecf-2a4868f35ff54ceb50d9d6972e32aa02f02337db.tar.gz
org.eclipse.ecf-2a4868f35ff54ceb50d9d6972e32aa02f02337db.tar.xz
org.eclipse.ecf-2a4868f35ff54ceb50d9d6972e32aa02f02337db.zip
Changes to remove references to Plugin class.
Diffstat (limited to 'doc')
-rw-r--r--doc/bundles/org.eclipse.ecf.tutorial/src/org/eclipse/ecf/tutorial/Activator.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/bundles/org.eclipse.ecf.tutorial/src/org/eclipse/ecf/tutorial/Activator.java b/doc/bundles/org.eclipse.ecf.tutorial/src/org/eclipse/ecf/tutorial/Activator.java
index 54a99c4a0..dc8cd0f6d 100644
--- a/doc/bundles/org.eclipse.ecf.tutorial/src/org/eclipse/ecf/tutorial/Activator.java
+++ b/doc/bundles/org.eclipse.ecf.tutorial/src/org/eclipse/ecf/tutorial/Activator.java
@@ -8,17 +8,20 @@
******************************************************************************/
package org.eclipse.ecf.tutorial;
-import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
*/
-public class Activator extends Plugin {
+public class Activator implements BundleActivator {
//The shared instance.
private static Activator plugin;
+ private BundleContext context = null;
+
/**
* The constructor.
*/
@@ -30,14 +33,18 @@ public class Activator extends Plugin {
* This method is called upon plug-in activation
*/
public void start(BundleContext context) throws Exception {
- super.start(context);
+ this.context = context;
}
+ public Bundle getBundle() {
+ if (context == null) return null;
+ else return context.getBundle();
+ }
/**
* This method is called when the plug-in is stopped
*/
public void stop(BundleContext context) throws Exception {
- super.stop(context);
+ this.context = null;
plugin = null;
}

Back to the top