Project

General

Profile

Download (1.5 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.printpublisher.internal;
12

    
13
import org.eclipse.ui.plugin.AbstractUIPlugin;
14
import org.osgi.framework.BundleContext;
15

    
16
/**
17
 * <p>PrintpublisherPlugin class.</p>
18
 *
19
 * @author n.hoffmann
20
 * @created Jul 15, 2010
21
 * @version 1.0
22
 */
23
public class PrintpublisherPlugin extends AbstractUIPlugin {
24
	
25
	// The plug-in ID
26
	/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
27
	public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.editor";
28

    
29
	// The shared instance
30
	private static PrintpublisherPlugin plugin;
31
	
32
	/**
33
	 * The constructor
34
	 */
35
	public PrintpublisherPlugin() {
36
	}
37

    
38
	/*
39
	 * (non-Javadoc)
40
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
41
	 */
42
	/** {@inheritDoc} */
43
	public void start(BundleContext context) throws Exception {
44
		super.start(context);
45
		plugin = this;
46
	}
47

    
48
	/*
49
	 * (non-Javadoc)
50
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
51
	 */
52
	/** {@inheritDoc} */
53
	public void stop(BundleContext context) throws Exception {
54
		plugin = null;
55
		super.stop(context);
56
	}
57

    
58
	/**
59
	 * Returns the shared instance
60
	 *
61
	 * @return the shared instance
62
	 */
63
	public static PrintpublisherPlugin getDefault() {
64
		return plugin;
65
	}
66
}
    (1-1/1)