1 package org.simantics.selectionview.ui.ontology;
\r
3 import org.eclipse.jface.resource.ImageDescriptor;
\r
4 import org.eclipse.ui.plugin.AbstractUIPlugin;
\r
5 import org.osgi.framework.BundleContext;
\r
8 * The activator class controls the plug-in life cycle
\r
10 public class Activator extends AbstractUIPlugin {
\r
13 public static final String PLUGIN_ID = "org.simantics.selectionview.ui.ontology"; //$NON-NLS-1$
\r
15 // The shared instance
\r
16 private static Activator plugin;
\r
21 public Activator() {
\r
26 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
\r
28 public void start(BundleContext context) throws Exception {
\r
29 super.start(context);
\r
35 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
\r
37 public void stop(BundleContext context) throws Exception {
\r
39 super.stop(context);
\r
43 * Returns the shared instance
\r
45 * @return the shared instance
\r
47 public static Activator getDefault() {
\r
52 * Returns an image descriptor for the image file at the given
\r
53 * plug-in relative path
\r
55 * @param path the path
\r
56 * @return the image descriptor
\r
58 public static ImageDescriptor getImageDescriptor(String path) {
\r
59 return imageDescriptorFromPlugin(PLUGIN_ID, path);
\r