]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.impl/src/org/simantics/db/impl/Activator.java
Disabled BOOKKEEPING flag for normal use
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / Activator.java
1 package org.simantics.db.impl;
2
3 import org.eclipse.core.runtime.Plugin;
4 import org.osgi.framework.BundleContext;
5 import org.simantics.db.DevelopmentKeys;
6
7
8 public class Activator extends Plugin {
9
10     // The plug-in ID
11     public static final String BUNDLE_ID = "org.simantics.db.impl"; //$NON-NLS-1$
12
13     // The shared instance
14     private static Activator plugin;
15
16     /**
17      * The constructor
18      */
19     public Activator() {
20     }
21
22     /*
23      * (non-Javadoc)
24      * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
25      */
26     @Override
27     public void start(BundleContext context) throws Exception {
28         super.start(context);
29         plugin = this;
30
31         // Make sure development debug key values are initialized if in development mode.
32         DevelopmentKeys.initialize();
33     }
34
35     /*
36      * (non-Javadoc)
37      * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
38      */
39     @Override
40     public void stop(BundleContext context) throws Exception {
41         plugin = null;
42         super.stop(context);
43     }
44
45     /**
46      * Returns the shared instance
47      *
48      * @return the shared instance
49      */
50     public static Activator getDefault() {
51         return plugin;
52     }
53
54 }