blob: 68546c5259e47c8489915fd20dcb1859d953df3d [file] [log] [blame]
package org.eclipse.tea.core.ui.live.internal;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
public class Activator extends AbstractUIPlugin {
private static BundleContext context;
public static final String PLUGIN_ID = "org.eclipse.tea.core.ui.live";
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
Activator.context = context;
}
@Override
public void stop(BundleContext context) throws Exception {
super.stop(context);
Activator.context = null;
}
public static BundleContext getBundleContext() {
return context;
}
public static void log(IStatus status) {
Platform.getLog(getBundleContext().getBundle()).log(status);
}
}