diff options
Diffstat (limited to 'plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Activator.java')
-rw-r--r-- | plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Activator.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Activator.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Activator.java deleted file mode 100644 index 6273879672..0000000000 --- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/bundle/Activator.java +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004-2007 Eike Stepper, Germany. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.internal.net4j.bundle; - -import org.eclipse.net4j.util.om.log.EclipseLoggingBridge; -import org.eclipse.net4j.util.om.log.PrintLogHandler; -import org.eclipse.net4j.util.om.trace.PrintTraceHandler; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -/** - * @author Eike Stepper - */ -public class Activator implements BundleActivator -{ - public void start(BundleContext context) throws Exception - { - AbstractOMPlatform.systemContext = context; - - PrintTraceHandler.CONSOLE.setPattern("{6} [{0}] {5}"); - AbstractOMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE); - AbstractOMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE); - - try - { - AbstractOMPlatform.INSTANCE.addLogHandler(EclipseLoggingBridge.INSTANCE); - } - catch (Exception ignore) - { - } - - Net4j.BUNDLE.setBundleContext(context); - } - - public void stop(BundleContext context) throws Exception - { - Net4j.BUNDLE.setBundleContext(null); - AbstractOMPlatform.systemContext = null; - } -} |