blob: bf7e6f83f0139754c7d294812b3fdf37d0a47af3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Ericsson
*
* 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
*
* Description:
*
* Contributors:
* Miles Parker, Tasktop Technologies - Initial API and Implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.reviews.r4e.connector.ui;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*
* @author Miles Parker
*/
public class R4EUiPlugin extends AbstractUIPlugin {
public static final String PLUGIN_ID = "org.eclipse.mylyn.reviews.r4e.connector.ui"; //$NON-NLS-1$
private static R4EUiPlugin plugin;
private R4EConnectorUi ui;
public R4EUiPlugin() {
}
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
ui = new R4EConnectorUi();
}
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance.
*
* @return the shared instance
*/
public static R4EUiPlugin getDefault() {
return plugin;
}
public R4EConnectorUi getConnectorUi() {
return ui;
}
public void setConnectorUi(R4EConnectorUi ui) {
this.ui = ui;
}
}