org.eclipse.birt.core.framework.eclipse
Class EclipsePlatform
java.lang.Object
org.eclipse.birt.core.framework.eclipse.EclipsePlatform
- All Implemented Interfaces:
- IPlatform
public class EclipsePlatform
- extends java.lang.Object
- implements IPlatform
Field Summary |
protected static java.util.logging.Logger |
logger
the logger |
Constructor Summary |
EclipsePlatform(org.osgi.framework.BundleContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static java.util.logging.Logger logger
- the logger
EclipsePlatform
public EclipsePlatform(org.osgi.framework.BundleContext context)
getExtensionRegistry
public IExtensionRegistry getExtensionRegistry()
- Specified by:
getExtensionRegistry
in interface IPlatform
- Returns:
- the global extension registry
getBundle
public IBundle getBundle(java.lang.String symbolicName)
- Specified by:
getBundle
in interface IPlatform
- Returns:
find
public java.net.URL find(IBundle bundle,
IPlatformPath path)
- Specified by:
find
in interface IPlatform
- Returns:
asLocalURL
public java.net.URL asLocalURL(java.net.URL url)
throws java.io.IOException
- Specified by:
asLocalURL
in interface IPlatform
- Returns:
-
- Throws:
java.io.IOException
getDebugOption
public java.lang.String getDebugOption(java.lang.String option)
- get debug options.
call Eclipse's getDebugeOption directly.
- Specified by:
getDebugOption
in interface IPlatform
- Parameters:
option
- option name
- Returns:
- option value
initializeTracing
public void initializeTracing(java.lang.String pluginId)
- setup logger used for tracing.
It reads ".options" in the plugin folder to get all the tracing items,
call the .getDebugOptions() to get the option values and setup the logger
use the values.
- Specified by:
initializeTracing
in interface IPlatform
- Parameters:
pluginId
- plugin id
getLoggerLevel
protected static java.util.logging.Level getLoggerLevel(java.lang.String option)
- get the logger level from the option.
It checks the option name, to see if it matches the rules:
.fine Logger.FINE .finer Logger.FINER .finest Logger.FINEST
others are Logger.FINE
- Parameters:
option
- option name
- Returns:
- logger level
getLoggerName
protected static java.lang.String getLoggerName(java.lang.String option)
- get the logger name from the option.
It get the logger name from the options: 1) remove any post fix from the
option (.fine, .finest, .finer) 2) replace all '/' with '.' 3) trim
spaces
- Parameters:
option
- option name
- Returns:
- the logger used to output the trace of that option
createFactoryObject
public java.lang.Object createFactoryObject(java.lang.String extensionId)
- Specified by:
createFactoryObject
in interface IPlatform
- Returns:
Copyright © 2008 Actuate Corp. All rights reserved.