org.jbpm.eclipse
Class JBPMEclipsePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.jbpm.eclipse.JBPMEclipsePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class JBPMEclipsePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.


Field Summary
static String PLUGIN_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
JBPMEclipsePlugin()
          The constructor.
 
Method Summary
static JBPMEclipsePlugin getDefault()
          Returns the shared instance.
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static String getResourceString(String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static String getUniqueIdentifier()
           
protected  void initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
           
static void log(org.eclipse.core.runtime.IStatus status)
           
static void log(Throwable t)
           
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation
 void stop(org.osgi.framework.BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

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

JBPMEclipsePlugin

public JBPMEclipsePlugin()
The constructor.

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception

stop

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

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
Exception

getDefault

public static JBPMEclipsePlugin getDefault()
Returns the shared instance.


getResourceString

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


getResourceBundle

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


getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
Returns an image descriptor for the image file at the given plug-in relative path. Uses the plug ins image registry to "cache" it.

Parameters:
path - the path
Returns:
the image descriptor

getUniqueIdentifier

public static String getUniqueIdentifier()

initializeDefaultPreferences

protected void initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
Overrides:
initializeDefaultPreferences in class org.eclipse.ui.plugin.AbstractUIPlugin

log

public static void log(Throwable t)

log

public static void log(org.eclipse.core.runtime.IStatus status)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.