org.eclipse.weaver.plugin
Class WeaverPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended byorg.eclipse.weaver.plugin.WeaverPlugin

public class WeaverPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.

Since:
1.0
Author:
- Marcos Didonet Del Fabro (LINA Labs, INRIA team)
- Guillaume Gueltas (Sodifrance)
See Also:
Serialized Form

Constructor Summary
WeaverPlugin()
          Returns the singleton instance of the Eclipse plugin
 
Method Summary
static WeaverPlugin getDefault()
          Returns the shared instance.
 Image getImage(java.lang.String key)
          This get a .gif from the image registry, which caches the icons folder.
 ImageDescriptor getImageDescriptor(java.lang.String key)
          This gets a .gif from the icons folder.
static WeaverPlugin getPlugin()
          Get the singleton instance.
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
 java.lang.String getString(java.lang.String key)
           
 java.lang.String getString(java.lang.String key, java.lang.Object s1)
           
 java.lang.String getString(java.lang.String key, java.lang.Object[] array)
           
 java.lang.String getString(java.lang.String key, java.lang.Object s1, java.lang.Object s2)
           
 void start(BundleContext context)
          This method is called upon plug-in activation
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeaverPlugin

public WeaverPlugin()
Returns the singleton instance of the Eclipse plugin.

Method Detail

getPlugin

public static WeaverPlugin getPlugin()
Get the singleton instance.


start

public void start(BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Throws:
java.lang.Exception

stop

public void stop(BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Throws:
java.lang.Exception

getDefault

public static WeaverPlugin getDefault()
Returns the shared instance.


getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,


getString

public java.lang.String getString(java.lang.String key)

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.Object s1)

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.Object s1,
                                  java.lang.Object s2)

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.Object[] array)

getImageDescriptor

public ImageDescriptor getImageDescriptor(java.lang.String key)
This gets a .gif from the icons folder.


getImage

public Image getImage(java.lang.String key)
This get a .gif from the image registry, which caches the icons folder.