|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
edu.rice.cs.drjava.plugins.eclipse.EclipsePlugin
public class EclipsePlugin
The main plugin class to be used in the desktop. This was partially generated using Eclipse's plugin wizard. It appears to partly follow the singleton pattern, but the constructor is still public. Perhaps this is one of their own conventions?
| 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 | |
|---|---|
EclipsePlugin()
Constructs a new EclipsePlugin. |
|
| Method Summary | |
|---|---|
static EclipsePlugin |
getDefault()
Returns the shared instance of the plugin. |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(String path)
Returns an image descriptor for the image file at the given plug-in relative path |
String |
getPluginClasspath()
Make a best attempt to return the classpath containing all plugin libraries. |
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 org.eclipse.core.resources.IWorkspace |
getWorkspace()
Returns the workspace instance. |
protected void |
initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
Sets default preference values. |
void |
log(String msg)
|
void |
log(String msg,
Exception e)
|
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
| 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 |
|---|
public static final String PLUGIN_ID
| Constructor Detail |
|---|
public EclipsePlugin()
descriptor - PluginDescriptor used by Eclipse| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.ui.plugin.AbstractUIPluginExceptionpublic void log(String msg)
public void log(String msg,
Exception e)
public void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.ui.plugin.AbstractUIPluginExceptionpublic static EclipsePlugin getDefault()
public static org.eclipse.core.resources.IWorkspace getWorkspace()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
path - the path
public static String getResourceString(String key)
public ResourceBundle getResourceBundle()
public String getPluginClasspath()
protected void initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
initializeDefaultPreferences in class org.eclipse.ui.plugin.AbstractUIPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||