3.x RC1 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / PHPDebugCorePlugin.java
index 038c3d4..0e6f79f 100644 (file)
@@ -7,6 +7,7 @@ import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Plugin;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.core.runtime.*;
+import org.osgi.framework.BundleContext;
 
 /**
  * The main plugin class to be used in the desktop.
@@ -54,15 +55,15 @@ public class PHPDebugCorePlugin extends Plugin {
        /**
         * Convenience method which returns the unique identifier of this plugin.
         */
-       public static String getUniqueIdentifier() {
-               if (getDefault() == null) {
-                       // If the default instance is not yet initialized,
-                       // return a static identifier. This identifier must
-                       // match the plugin id defined in plugin.xml
-                       return PLUGIN_ID;
-               }
-               return getDefault().getDescriptor().getUniqueIdentifier();
-       }
+//     public static String getUniqueIdentifier() {
+//             if (getDefault() == null) {
+//                     // If the default instance is not yet initialized,
+//                     // return a static identifier. This identifier must
+//                     // match the plugin id defined in plugin.xml
+//                     return PLUGIN_ID;
+//             }
+//             return getDefault().getDescriptor().getUniqueIdentifier();
+//     }
        
        /**
         * @see Plugin#shutdown()
@@ -71,4 +72,17 @@ public class PHPDebugCorePlugin extends Plugin {
                plugin = null;
                super.shutdown();
        }
+       /**
+        * This method is called upon plug-in activation
+        */
+       public void start(BundleContext context) throws Exception {
+               super.start(context);
+       }
+
+       /**
+        * This method is called when the plug-in is stopped
+        */
+       public void stop(BundleContext context) throws Exception {
+               super.stop(context);
+       }
 }