X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graphfile%2Fsrc%2Forg%2Fsimantics%2Fgraphfile%2FActivator.java;h=dc73a09065a73e19e05d007cdf8749bca332aba0;hb=1dfc44ff89362fb4500ee9427432541b92d1953f;hp=5341a19e759dfc9da56dff360ee9d3e92c7b2177;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graphfile/src/org/simantics/graphfile/Activator.java b/bundles/org.simantics.graphfile/src/org/simantics/graphfile/Activator.java index 5341a19e7..dc73a0906 100644 --- a/bundles/org.simantics.graphfile/src/org/simantics/graphfile/Activator.java +++ b/bundles/org.simantics.graphfile/src/org/simantics/graphfile/Activator.java @@ -1,53 +1,53 @@ -/******************************************************************************* - * Copyright (c) 2013 Association for Decentralized Information Management - * in Industry THTH ry. - * 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.graphfile; - -import org.eclipse.core.runtime.Plugin; -import org.osgi.framework.BundleContext; - -public class Activator extends Plugin { - - public static String PLUGIN_ID = "org.simantics.graphfile"; - - private static Activator activator; - - private static BundleContext context; - - static BundleContext getContext() { - return context; - } - - /* - * (non-Javadoc) - * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext bundleContext) throws Exception { - activator = this; - Activator.context = bundleContext; - super.start(context); - } - - /* - * (non-Javadoc) - * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) - */ - public void stop(BundleContext bundleContext) throws Exception { - super.stop(context); - Activator.context = null; - activator = null; - } - - public static Activator getDefault() { - return activator; - } - -} +/******************************************************************************* + * Copyright (c) 2013 Association for Decentralized Information Management + * in Industry THTH ry. + * 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 + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.graphfile; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +public class Activator extends Plugin { + + public static String PLUGIN_ID = "org.simantics.graphfile"; + + private static Activator activator; + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + activator = this; + Activator.context = bundleContext; + super.start(context); + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + super.stop(context); + Activator.context = null; + activator = null; + } + + public static Activator getDefault() { + return activator; + } + +}