| 
 | |||||||||||
| 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
net.sf.tm.plugin.ContextManagerPlugin
Main plugin class. Provides some access methods to the Eclipse environment (e.g. resources, workspace).
| Field Summary | 
| Fields inherited from class org.eclipse.core.runtime.Plugin | 
| PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME | 
| Constructor Summary | |
| ContextManagerPlugin(IPluginDescriptor descriptor)Constructor | |
| Method Summary | |
|  Shell | getActiveWorkbenchShell() | 
| static ContextManagerPlugin | getDefault() | 
|  ImageDescriptor | getImageDescriptor(String name)Generates an Image descriptor. | 
|  String | getLocalizedString(String key)Localizes a given String using the current locale. | 
|  String | getLocalizedString(String key,
                   Object arg)Localizes a given String using the current locale. | 
|  String | getLocalizedString(String key,
                   Object[] args)Localizes a given String using the current locale. | 
|  ResourceBundle | getResourceBundle() | 
|  IWorkspace | getWorkspace() | 
| protected  void | initializeDefaultPreferences(IPreferenceStore store) | 
|  void | showError(String msg)Displays an error message box. | 
|  void | showError(String msg,
          Throwable exception)Displays an error message box. | 
| Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin | 
| createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, initializeDefaultPluginPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup | 
| Methods inherited from class org.eclipse.core.runtime.Plugin | 
| find, find, getDescriptor, getLog, getPluginPreferences, getStateLocation, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public ContextManagerPlugin(IPluginDescriptor descriptor)
descriptor - plugin informations| Method Detail | 
public static ContextManagerPlugin getDefault()
public Shell getActiveWorkbenchShell()
public IWorkspace getWorkspace()
protected void initializeDefaultPreferences(IPreferenceStore store)
AbstractUIPlugin.initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore)public ResourceBundle getResourceBundle()
public void showError(String msg,
                      Throwable exception)
msg - localized exception message.exception - catched exceptionpublic void showError(String msg)
msg - localized exception message.public String getLocalizedString(String key)
key - The key of the text that should be translated
public String getLocalizedString(String key,
                                 Object arg)
key - The key of the text that should be translatedarg - Argument which is inserted into the message at the {0} pos
public String getLocalizedString(String key,
                                 Object[] args)
key - The key of the text that should be translatedargs - The arguments which should be inserted in the message.
public ImageDescriptor getImageDescriptor(String name)
name - path to the image, relative to the plugin directory
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||