net.refractions.udig.catalog.rasterings
Class RasteringsPlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by net.refractions.udig.catalog.rasterings.RasteringsPlugin

public class RasteringsPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.


Constructor Summary
RasteringsPlugin()
          The constructor.
 
Method Summary
static RasteringsPlugin getDefault()
          Returns the shared instance.
static ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 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.
 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

RasteringsPlugin

public RasteringsPlugin()
The constructor.

Method Detail

start

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

Parameters:
context -
Throws:
java.lang.Exception

stop

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

Parameters:
context -
Throws:
java.lang.Exception

getDefault

public static RasteringsPlugin getDefault()
Returns the shared instance.

Returns:
Default instance of RasteringsPlugin.

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.

Parameters:
key -
Returns:
Value of the indicated resource string.

getResourceBundle

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

Returns:
This plugins ResourceBundle.

getImageDescriptor

public static ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path.

Parameters:
path - the path
Returns:
the image descriptor