net.refractions.udig.tool.select
Class SelectPlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by net.refractions.udig.tool.select.SelectPlugin

public class SelectPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.


Field Summary
static java.lang.String ID
          Comment for ID
 
Constructor Summary
SelectPlugin()
          The constructor.
 
Method Summary
static SelectPlugin getDefault()
          Returns the shared 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.
static void log(java.lang.String message2, java.lang.Throwable e)
          Writes an info log in the plugin's log.
 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
 

Field Detail

ID

public static final java.lang.String ID
Comment for ID

See Also:
Constant Field Values
Constructor Detail

SelectPlugin

public SelectPlugin()
The constructor.

Method Detail

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 SelectPlugin getDefault()
Returns the shared instance.

Returns:
x

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:
x

getResourceBundle

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

Returns:
x

log

public static void log(java.lang.String message2,
                       java.lang.Throwable e)
Writes an info log in the plugin's log.

This should be used for user level messages.