1 package org.simantics.document.linking;
\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
12 public ImageDescriptor cross;
\r
13 public ImageDescriptor clock_red;
\r
16 public static final String PLUGIN_ID = "org.simantics.document.linking.ui"; //$NON-NLS-1$
\r
18 // The shared instance
\r
19 private static Activator plugin;
\r
24 public Activator() {
\r
29 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
\r
31 public void start(BundleContext context) throws Exception {
\r
32 super.start(context);
\r
34 cross = imageDescriptorFromPlugin(PLUGIN_ID, "icons/silk_small/cross.png");
\r
35 clock_red = imageDescriptorFromPlugin(PLUGIN_ID, "icons/silk_small/clock_red.png");
\r
40 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
\r
42 public void stop(BundleContext context) throws Exception {
\r
44 super.stop(context);
\r
48 * Returns the shared instance
\r
50 * @return the shared instance
\r
52 public static Activator getDefault() {
\r