Search in sources :

Example 1 with Activator

use of org.eclipse.ecf.internal.core.identity.Activator in project ecf by eclipse.

the class Trace method shouldTrace0.

protected static boolean shouldTrace0(String option) {
    if (option == null)
        return false;
    Activator activator = Activator.getDefault();
    if (activator == null)
        return false;
    DebugOptions debugOptions = activator.getDebugOptions();
    if (debugOptions == null)
        return false;
    String result = debugOptions.getOption(option);
    // $NON-NLS-1$
    return (result == null) ? false : result.equalsIgnoreCase("true");
}
Also used : Activator(org.eclipse.ecf.internal.core.identity.Activator) DebugOptions(org.eclipse.osgi.service.debug.DebugOptions)

Example 2 with Activator

use of org.eclipse.ecf.internal.core.identity.Activator in project ecf by eclipse.

the class IDFactory method initialize.

private static synchronized void initialize() {
    if (!initialized) {
        Activator a = Activator.getDefault();
        if (a != null)
            a.setupNamespaceExtensionPoint();
        initialized = true;
    }
}
Also used : Activator(org.eclipse.ecf.internal.core.identity.Activator)

Aggregations

Activator (org.eclipse.ecf.internal.core.identity.Activator)2 DebugOptions (org.eclipse.osgi.service.debug.DebugOptions)1