adapt master to develop
[taxeditor.git] / eu.etaxonomy.taxeditor.printpublisher / src / main / java / eu / etaxonomy / taxeditor / printpublisher / internal / PrintpublisherPlugin.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.taxeditor.printpublisher.internal;
10
11 import org.eclipse.ui.plugin.AbstractUIPlugin;
12 import org.osgi.framework.BundleContext;
13
14 /**
15 * <p>PrintpublisherPlugin class.</p>
16 *
17 * @author n.hoffmann
18 * @created Jul 15, 2010
19 */
20 public class PrintpublisherPlugin extends AbstractUIPlugin {
21
22 // The plug-in ID
23 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
24 public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.editor";
25
26 // The shared instance
27 private static PrintpublisherPlugin plugin;
28
29 /**
30 * The constructor
31 */
32 public PrintpublisherPlugin() {
33 }
34
35 public void start(BundleContext context) throws Exception {
36 super.start(context);
37 plugin = this;
38 }
39
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 PrintpublisherPlugin getDefault() {
51 return plugin;
52 }
53 }