blob: 598a0650fe56e3180d8b1eec485045050dae88ca [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - Initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.examples.interpreter;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
*/
public class OCLExamplePlugin extends AbstractUIPlugin {
// The shared instance.
private static OCLExamplePlugin plugin;
/**
* The constructor.
*/
public OCLExamplePlugin() {
super();
plugin = this;
}
/**
* Obtains my plug-in ID.
*
* @return my plug-in ID
*/
public static String getPluginId() {
return getDefault().getBundle().getSymbolicName();
}
/**
* This method is called upon plug-in activation
*/
public void start(BundleContext context) throws Exception {
super.start(context);
}
/**
* This method is called when the plug-in is stopped
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
}
/**
* Returns the shared instance.
*/
public static OCLExamplePlugin getDefault() {
return plugin;
}
}