java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.port80.swt.SwtPlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
- public class SwtPlugin
- extends org.eclipse.ui.plugin.AbstractUIPlugin
The main plugin class to be used in the desktop.
| Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, start, startup, stop |
| Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
plugin
private static SwtPlugin plugin
resourceBundle
private java.util.ResourceBundle resourceBundle
SwtPlugin
public SwtPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
- The constructor.
getDefault
public static SwtPlugin getDefault()
- Returns the shared instance.
getWorkspace
public static org.eclipse.core.resources.IWorkspace getWorkspace()
- Returns the workspace 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,
log
public static void log(org.eclipse.core.runtime.IStatus status)
log
public static void log(java.lang.String message)
log
public static void log(java.lang.String message,
java.lang.Exception e)
log
public static void log(java.lang.String message,
int code,
java.lang.Exception e)