1 package org.simantics.image.ui.internal;
3 import org.eclipse.jface.resource.ImageDescriptor;
4 import org.eclipse.ui.plugin.AbstractUIPlugin;
5 import org.osgi.framework.Bundle;
6 import org.osgi.framework.BundleContext;
9 * The activator class controls the plug-in life cycle
11 public class Activator extends AbstractUIPlugin {
14 public static final String PLUGIN_ID = "org.simantics.image"; //$NON-NLS-1$
16 // The shared instance
17 private static Activator plugin;
19 public static ImageDescriptor IMAGE_ICON;
20 public static ImageDescriptor IMAGES_ICON;
21 public static ImageDescriptor ADD_IMAGE_ICON;
31 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
33 public void start(BundleContext context) throws Exception {
37 Bundle bundle = context.getBundle();
39 IMAGE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/image.png"));
40 IMAGES_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/images.png"));
41 ADD_IMAGE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/add_image.png"));
46 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
48 public void stop(BundleContext context) throws Exception {
54 * Returns the shared instance
56 * @return the shared instance
58 public static Activator getDefault() {