X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2Finternal%2FActivator.java;h=4482f47ccb07420b3d9a4e1d9fbdb005d034458f;hb=195c63dd5c7600170f594750de96793ebf06a0ad;hp=0eef8a948a37f1d0cb514995d00dac638ff56a50;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db/src/org/simantics/db/internal/Activator.java b/bundles/org.simantics.db/src/org/simantics/db/internal/Activator.java index 0eef8a948..4482f47cc 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/internal/Activator.java +++ b/bundles/org.simantics.db/src/org/simantics/db/internal/Activator.java @@ -1,37 +1,37 @@ -package org.simantics.db.internal; - -import org.eclipse.core.runtime.Plugin; -import org.osgi.framework.BundleContext; - -public class Activator extends Plugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.simantics.db"; - - private static Activator activator; - - private static BundleContext context; - - @Override - public void start(BundleContext context) throws Exception { - activator = this; - Activator.context = context; - super.start(context); - } - - @Override - public void stop(BundleContext context) throws Exception { - super.stop(context); - Activator.context = null; - activator = null; - } - - public static Activator getDefault() { - return activator; - } - - public static BundleContext getContext() { - return context; - } - -} +package org.simantics.db.internal; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.simantics.db"; + + private static Activator activator; + + private static BundleContext context; + + @Override + public void start(BundleContext context) throws Exception { + activator = this; + Activator.context = context; + super.start(context); + } + + @Override + public void stop(BundleContext context) throws Exception { + super.stop(context); + Activator.context = null; + activator = null; + } + + public static Activator getDefault() { + return activator; + } + + public static BundleContext getContext() { + return context; + } + +}