Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-20 12:35:48 -0400
committerslewis2007-04-20 12:35:48 -0400
commite7b15d9dd66e7553b2c72e9a3922428c30cea76f (patch)
treec0ceee7ca38e344583ac8d87971a1220e357e6c4 /framework/bundles/org.eclipse.ecf.identity/src
parent191772a98f7f922c0ecab971a1e2046b5adc54ea (diff)
downloadorg.eclipse.ecf-e7b15d9dd66e7553b2c72e9a3922428c30cea76f.tar.gz
org.eclipse.ecf-e7b15d9dd66e7553b2c72e9a3922428c30cea76f.tar.xz
org.eclipse.ecf-e7b15d9dd66e7553b2c72e9a3922428c30cea76f.zip
Changed static instance reference to be set in static initializer
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java
index 511e6d925..86ab3c792 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/internal/core/identity/Activator.java
@@ -93,6 +93,10 @@ public class Activator implements BundleActivator {
return adapterManager;
}
+ static {
+ plugin = new Activator();
+ }
+
/**
* The constructor
*/
@@ -123,7 +127,6 @@ public class Activator implements BundleActivator {
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
- plugin = this;
this.context = context;
IExtensionRegistry reg = getExtensionRegistry();
if (reg != null) {

Back to the top