From 94fd0f7c7dbc60b811fbc117ecf7604fb7d915b6 Mon Sep 17 00:00:00 2001 From: Andrew Gvozdev Date: Mon, 24 Jun 2013 21:56:39 -0400 Subject: [PATCH] bug 411547: Activator MakeUITestsPlugin --- .../cdt/make/ui/tests/MakeUITestsPlugin.java | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 build/org.eclipse.cdt.make.ui.tests/src/org/eclipse/cdt/make/ui/tests/MakeUITestsPlugin.java diff --git a/build/org.eclipse.cdt.make.ui.tests/src/org/eclipse/cdt/make/ui/tests/MakeUITestsPlugin.java b/build/org.eclipse.cdt.make.ui.tests/src/org/eclipse/cdt/make/ui/tests/MakeUITestsPlugin.java new file mode 100644 index 00000000000..2c7eba97068 --- /dev/null +++ b/build/org.eclipse.cdt.make.ui.tests/src/org/eclipse/cdt/make/ui/tests/MakeUITestsPlugin.java @@ -0,0 +1,53 @@ +/******************************************************************************* + * Copyright (c) 2013, 2013 Andrew Gvozdev 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: + * Andrew Gvozdev - initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.make.ui.tests; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class MakeUITestsPlugin extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.cdt.make.ui.tests"; //$NON-NLS-1$ + + // The shared instance + private static MakeUITestsPlugin plugin; + + /** + * The constructor + */ + public MakeUITestsPlugin() { + } + + @Override + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + @Override + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static MakeUITestsPlugin getDefault() { + return plugin; + } + +}