1 package org.simantics.document.linking;
3 import org.eclipse.jface.resource.ImageDescriptor;
4 import org.eclipse.ui.plugin.AbstractUIPlugin;
5 import org.osgi.framework.BundleContext;
8 * The activator class controls the plug-in life cycle
10 public class Activator extends AbstractUIPlugin {
12 public ImageDescriptor cross;
13 public ImageDescriptor clock_red;
16 public static final String PLUGIN_ID = "org.simantics.document.linking.ui"; //$NON-NLS-1$
18 // The shared instance
19 private static Activator plugin;
29 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
31 public void start(BundleContext context) throws Exception {
34 cross = imageDescriptorFromPlugin(PLUGIN_ID, "icons/silk_small/cross.png");
35 clock_red = imageDescriptorFromPlugin(PLUGIN_ID, "icons/silk_small/clock_red.png");
40 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
42 public void stop(BundleContext context) throws Exception {
48 * Returns the shared instance
50 * @return the shared instance
52 public static Activator getDefault() {