View Javadoc

1   /*
2    * $Id: DumpOntPlugin.java,v 1.3 2004/09/08 13:16:47 jlerner Exp $
3    *
4    * Copyright (c) 1999-2004, BBN Technologies, LLC.
5    * All rights reserved.
6    * http://www.daml.org/legal/opensource/bbn_license.html
7    */
8    
9   package com.bbn.swede.library.dumpont;
10  
11  import org.eclipse.core.runtime.Plugin;
12  
13  /***
14   * Plugin class for the DumpOnt library plugin.
15   * @author jlerner
16   */
17  public class DumpOntPlugin extends Plugin
18  {
19     private static Plugin _plugin;
20     /***
21      * Creates a new DumpOntPlugin.
22      */
23     public DumpOntPlugin()
24     {
25        _plugin = this;
26     }
27     
28     /***
29      * Retrieves the one and only instance of the plugin.
30      * @return The singleton instance
31      */
32     public static Plugin getPlugin()
33     {
34        return _plugin;
35     }
36     
37     /***
38      * Retrieves the one and only instance of the dumpont plugin.
39      * @return The singleton instance of DumpOntPlugin
40      */
41     public static DumpOntPlugin getDumpOntPlugin()
42     {
43        return (DumpOntPlugin)_plugin;
44     }
45     
46     /***
47      * Retrieves the plugin ID string.
48      * @return The plugin ID
49      */
50     public static String getID()
51     {
52        return getDumpOntPlugin().getBundle().getSymbolicName();
53     }
54  }