blob: ddefe6c72be1ee1832e1d903f998aaf8c544cdc0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2005 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
*/
package org.eclipse.jem.internal.core;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
import org.eclipse.jem.util.logger.proxy.Logger;
import org.eclipse.jem.util.logger.proxyrender.EclipseLogger;
/**
* org.eclipse.jem plugin
*/
public class JEMPlugin extends Plugin {
private static JEMPlugin PLUGIN;
private Logger logger;
public JEMPlugin() {
PLUGIN = this;
}
public static JEMPlugin getPlugin() {
return PLUGIN;
}
/* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
logger = EclipseLogger.getEclipseLogger(this);
}
public Logger getLogger() {
return logger;
}
}