]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.ide/src/main/java/org/argeo/slc/ide/SlcIdePlugin.java
Refactor / rename
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ide / src / main / java / org / argeo / slc / ide / SlcIdePlugin.java
1 package org.argeo.slc.ide;
2
3 import org.eclipse.ui.plugin.AbstractUIPlugin;
4 import org.osgi.framework.BundleContext;
5
6 /**
7 * The activator class controls the plug-in life cycle
8 */
9 public class SlcIdePlugin extends AbstractUIPlugin {
10
11 // The plug-in ID
12 public static final String ID = "org.argeo.slc.ide";
13
14 // The shared instance
15 private static SlcIdePlugin plugin;
16
17 /**
18 * The constructor
19 */
20 public SlcIdePlugin() {
21 }
22
23 @Override
24 public void start(BundleContext context) throws Exception {
25 super.start(context);
26 plugin = this;
27 }
28
29 @Override
30 public void stop(BundleContext context) throws Exception {
31 plugin = null;
32 super.stop(context);
33 }
34
35 /**
36 * Returns the shared instance
37 *
38 * @return the shared instance
39 */
40 public static SlcIdePlugin getDefault() {
41 return plugin;
42 }
43
44 }