com.pnp.xfeature
Class XFeaturePlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by com.pnp.xfeature.XFeaturePlugin

public class XFeaturePlugin
extends AbstractUIPlugin

The main plugin class. Prepared semi-automatically by Eclipse Plug-in Project Wizard

Author:
Kamil Ekstein, 21.9.2004

Field Summary
static java.lang.String PLUGIN_ID
           
 
Constructor Summary
XFeaturePlugin()
          The constructor checks whether the plug-in is already instantiated and if not it creates new ResourceBundle.
 
Method Summary
static XFeaturePlugin getDefault()
          Returns the shared instance.
static XFeaturePlugin getInstance()
          Singleton method.
 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(IStatus status)
          A logger front-end method to simplify calls to the Eclipse's logger.
static void log(java.lang.String message, java.lang.Throwable t)
          A logger front-end method to simplify calls to the Eclipse's logger.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Constructor Detail

XFeaturePlugin

public XFeaturePlugin()
The constructor checks whether the plug-in is already instantiated and if not it creates new ResourceBundle.

Method Detail

start

public void start(BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation. Calls just the the super class method and catches the exceptions.

Throws:
java.lang.Exception

stop

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

Throws:
java.lang.Exception

getDefault

public static XFeaturePlugin 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.


getInstance

public static XFeaturePlugin getInstance()
Singleton method.

Returns:
singleton plugin instance

log

public static void log(java.lang.String message,
                       java.lang.Throwable t)
A logger front-end method to simplify calls to the Eclipse's logger.


log

public static void log(IStatus status)
A logger front-end method to simplify calls to the Eclipse's logger.



Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.