org.topbraidcomposer.core
Class CorePlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.topbraidcomposer.core.CorePlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
public class CorePlugin
- extends org.eclipse.ui.plugin.AbstractUIPlugin
The TBC Core Plugin.
- Author:
- Holger Knublauch
|
Field Summary |
static java.lang.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 |
|
Method Summary |
static CorePlugin |
getDefault()
|
int |
getScalabilityCap()
|
org.eclipse.jface.preference.IPreferenceStore |
getTBPreferenceStore()
Gets an IPreferenceStore for the preferences of TB.getPreferences(). |
static void |
initChangeEngine(org.eclipse.ui.IWorkbench workbench)
|
static void |
log(java.lang.String message)
|
static void |
logError(java.lang.String sPluginID,
java.lang.String sMessage,
java.lang.Throwable e)
Alerts the user to an error and records it in the Eclipse error log. |
static void |
logError(java.lang.String message,
java.lang.Throwable ex)
|
static void |
logWarning(java.lang.String sPluginID,
java.lang.String sMessage,
java.lang.Throwable t)
|
static void |
showSuccess(org.eclipse.swt.widgets.Shell shell,
java.lang.String text,
java.lang.String message)
|
static void |
showSuccess(java.lang.String text,
java.lang.String message)
|
static void |
showUserError(java.lang.String message)
|
static void |
showUserError(java.lang.String message,
java.lang.Throwable ex)
|
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, initializeDefaultPreferences, 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 |
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- See Also:
- Constant Field Values
CorePlugin
public CorePlugin()
getDefault
public static CorePlugin getDefault()
getTBPreferenceStore
public org.eclipse.jface.preference.IPreferenceStore getTBPreferenceStore()
- Gets an IPreferenceStore for the preferences of TB.getPreferences().
This method is required since org.topbraid.core does not depend on JFace.
- Returns:
- the preferenceStore wrapping TB.getPreferences();
getScalabilityCap
public int getScalabilityCap()
initChangeEngine
public static void initChangeEngine(org.eclipse.ui.IWorkbench workbench)
log
public static void log(java.lang.String message)
logError
public static void logError(java.lang.String message,
java.lang.Throwable ex)
logError
public static void logError(java.lang.String sPluginID,
java.lang.String sMessage,
java.lang.Throwable e)
- Alerts the user to an error and records it in the Eclipse error log. Use
of this method should be limited to only severe errors that are likely
to cause noticeable problems. Lesser errors that should be safe
if they go unnoticed should be logged as warnings.
- Parameters:
sPluginID - The ID of the pluging where the error occured.sMessage - The message to display as the cause of the error.e - The exception that caused the error.- See Also:
#logWarning(String, String, Exception)
logWarning
public static void logWarning(java.lang.String sPluginID,
java.lang.String sMessage,
java.lang.Throwable t)
showSuccess
public static void showSuccess(java.lang.String text,
java.lang.String message)
showSuccess
public static void showSuccess(org.eclipse.swt.widgets.Shell shell,
java.lang.String text,
java.lang.String message)
showUserError
public static void showUserError(java.lang.String message)
showUserError
public static void showUserError(java.lang.String message,
java.lang.Throwable ex)
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
start in interface org.osgi.framework.BundleActivator- Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
java.lang.Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Specified by:
stop in interface org.osgi.framework.BundleActivator- Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
java.lang.Exception