|
|||||||||
| 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
org.electrocodeogram.cpc.core.CPCCorePlugin
public class CPCCorePlugin
This singleton class represents the central integration point of the CPC Framework. Static methods on this class can be used to obtain references to the three key elements of the CPC Framework:
getProviderRegistry()IProviderRegistry.
CPC modules use this class to register and obtain implementations for specific
API interfaces.getEventHubRegistry()IEventHubRegistry.
CPC modules use the event hub to exchange CPCEvents in a
flexible and decoupled manner.getConfigurationRegistry()IConfigurationRegistry.
CPC modules use the configuration registry to obtain global configuration data.
getProviderRegistry(),
IProviderRegistry,
getEventHubRegistry(),
IEventHubRegistry,
getConfigurationRegistry(),
IConfigurationRegistry,
org.electrocodeogram.cpc.core.api,
org.electrocodeogram.cpc.core.utils| Field Summary | |
|---|---|
static java.lang.String |
PLUGIN_ID
The plug-in ID of the CPC Core plug-in. |
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
CPCCorePlugin()
The default constructor. |
|
| Method Summary | |
|---|---|
static IConfigurationRegistry |
getConfigurationRegistry()
Yields and instance of the currently active IConfigurationRegistry. |
static CPCCorePlugin |
getDefault()
Returns the shared singleton instance of the CPCCorePlugin. |
static IEventHubRegistry |
getEventHubRegistry()
Yields and instance of the currently active IEventHubRegistry. |
static org.electrocodeogram.eclipse.core.logging.ILogManager |
getLogManager()
Retrieves the underlying shared ILogManager used by the CPC Core module. |
static IProviderRegistry |
getProviderRegistry()
Yields an instance of the currently active IProviderRegistry. |
static boolean |
isDebugChecking()
Checks whether additional internal consistency checkings should be performed. |
void |
propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event)
|
static void |
setDebugChecking(boolean debugChecking)
Toggles some internal consistency checking on/off. |
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 |
| Field Detail |
|---|
public static final java.lang.String PLUGIN_ID
| Constructor Detail |
|---|
public CPCCorePlugin()
| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.ui.plugin.AbstractUIPluginjava.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.ui.plugin.AbstractUIPluginjava.lang.Exceptionpublic static CPCCorePlugin getDefault()
public static org.electrocodeogram.eclipse.core.logging.ILogManager getLogManager()
ILogManager used by the CPC Core module.
public static IProviderRegistry getProviderRegistry()
IProviderRegistry.
IProviderRegistry, usually not null. However, if called
before the CPC Core startup sequence has completed or during
shutdown, NULL may be returned.IProviderRegistry,
IProviderpublic static IEventHubRegistry getEventHubRegistry()
IEventHubRegistry.
CPCEvents in a
flexible and decoupled manner.
IEventHubRegistry, usually not null. However, if called
before the CPC Core startup sequence has completed or during
shutdown, NULL may be returned.IEventHubRegistry,
IEventHubListener,
CPCEventpublic static IConfigurationRegistry getConfigurationRegistry()
IConfigurationRegistry.
IEventHubRegistry, usually not null. However, if called
before the CPC Core startup sequence has completed or during
shutdown, NULL may be returned.IConfigurationRegistrypublic static boolean isDebugChecking()
public static void setDebugChecking(boolean debugChecking)
debugChecking - true if additional consistency checks should be
performed, false otherwise.public void propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event)
propertyChange in interface org.eclipse.core.runtime.Preferences.IPropertyChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||