All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gkutiel.flip.processor.Activator Maven / Gradle / Ivy

There is a newer version: 12-RELEASE
Show newest version
package com.github.gkutiel.flip.processor;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
import org.osgi.framework.BundleContext;

/**
 * The activator class controls the plug-in life cycle
 */
public class Activator extends Plugin {

	// The plug-in ID
	public static final String PLUGIN_ID = "flip-processor"; //$NON-NLS-1$

	// The shared instance
	private static Activator plugin;

	/**
	 * Returns the shared instance
	 * 
	 * @return the shared instance
	 */
	public static Activator getDefault() {
		return plugin;
	}

	public static void info(final String msg) {
		getDefault().getLog().log(new Status(IStatus.INFO, PLUGIN_ID, "FLIP-PROCESSOR: " + msg));
	}

	/**
	 * The constructor
	 */
	public Activator() {
		plugin = this;
	}

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
	 */
	@Override
	public void start(final BundleContext context) throws Exception {
		super.start(context);
		info("normal start");
	}

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
	 */
	@Override
	public void stop(final BundleContext context) throws Exception {
		info("stop");
		super.stop(context);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy