org.eclipse.actf.core
Class ActfCorePlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.actf.core.ActfCorePlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
- Direct Known Subclasses:
- ModelPlugin
public class ActfCorePlugin
- extends Plugin
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
ACTFCORE_PLUGIN_ID
public static final String ACTFCORE_PLUGIN_ID
- See Also:
- Constant Field Values
DEBUG_OPTION_ID
public static final String DEBUG_OPTION_ID
- See Also:
- Constant Field Values
LOG_OPTION_ID
public static final String LOG_OPTION_ID
- See Also:
- Constant Field Values
TRACE_OPTION_ID
public static final String TRACE_OPTION_ID
- See Also:
- Constant Field Values
TRACESTREAM_OPTION_ID
public static final String TRACESTREAM_OPTION_ID
- See Also:
- Constant Field Values
TRACELEVEL_OPTION_ID
public static final String TRACELEVEL_OPTION_ID
- See Also:
- Constant Field Values
runtimeContext
protected IRuntimeContext runtimeContext
configuration
protected IConfiguration configuration
clCache
protected ClassLoaderCache clCache
traceStream
protected String traceStream
traceLevel
protected int traceLevel
ActfCorePlugin
public ActfCorePlugin()
- The constructor.
getPluginId
protected String getPluginId()
getTraceOptionId
protected String getTraceOptionId()
getDebugOptionId
protected String getDebugOptionId()
getLogOptionId
protected String getLogOptionId()
getDefault
public static ActfCorePlugin getDefault()
- Returns the shared instance.
- Returns:
- plugin
getDefaultTraceFilename
protected String getDefaultTraceFilename()
start
public void start(org.osgi.framework.BundleContext context)
throws Exception
- This method is called upon plug-in activation
- Specified by:
start
in interface org.osgi.framework.BundleActivator
- Overrides:
start
in class Plugin
- Parameters:
context
- bundle context
- Throws:
Exception
getTracer
protected IReporter getTracer()
getRuntimeContext
public IRuntimeContext getRuntimeContext()
logException
public void logException(String message,
Throwable t)
logException
public void logException(Throwable t)
log
public void log(String option,
int sev,
int code,
String message,
Throwable t)
prepareTraceFacility
protected void prepareTraceFacility()
stop
public void stop(org.osgi.framework.BundleContext context)
throws Exception
- Specified by:
stop
in interface org.osgi.framework.BundleActivator
- Overrides:
stop
in class Plugin
- Throws:
Exception
isDebugging
public boolean isDebugging(String option)
setupDefaultTraceStream
protected String setupDefaultTraceStream()