View Javadoc

1   /*
2    * $Id: WizardsPlugin.java,v 1.1 2005/03/29 18:53:33 aperezlo 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.ui.wizards;
10  
11  import org.eclipse.core.resources.IWorkspace;
12  import org.eclipse.core.resources.ResourcesPlugin;
13  import org.eclipse.ui.plugin.AbstractUIPlugin;
14  
15  /***
16   * Plugin class for com.bbn.swede.ui.wizards.
17   */
18  public class WizardsPlugin extends AbstractUIPlugin
19  {
20     //The shared instance.
21     private static WizardsPlugin _plugin;
22     
23     /***
24      * The constructor.
25      */
26     public WizardsPlugin()
27     {
28        super();
29        _plugin = this;
30     }
31  
32     /***
33      * Returns the shared instance.
34      * @return The singleton instance
35      */
36     public static WizardsPlugin getDefault()
37     {
38        return _plugin;
39     }
40  
41     /***
42      * Returns the workspace instance.
43      * @return The workspace
44      */
45     public static IWorkspace getWorkspace()
46     {
47        return ResourcesPlugin.getWorkspace();
48     }
49  
50     /***
51      * Retrieves the ID string for the plugin.
52      * @return The plugin ID
53      */
54     public static String getID()
55     {
56        return WizardsPlugin.getDefault().getBundle().getSymbolicName();
57     }
58  }