Implementation of file handlers for both RCP & RAP
[lgpl/argeo-commons.git] / eclipse / runtime / org.argeo.eclipse.ui.jcr / src / main / java / org / argeo / eclipse / ui / jcr / JcrUiPlugin.java
index bc409830e6553068aea53a9a9615fbb9185dec3a..a533682969eb60d1702d0886b8ab671af4efafa5 100644 (file)
@@ -2,10 +2,22 @@ package org.argeo.eclipse.ui.jcr;
 
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
 
 public class JcrUiPlugin extends AbstractUIPlugin {
        public final static String ID = "org.argeo.eclipse.ui.jcr";
 
+       private static JcrUiPlugin plugin;
+
+       public void start(BundleContext context) throws Exception {
+               super.start(context);
+               plugin = this;
+       }
+
+       public static JcrUiPlugin getDefault() {
+               return plugin;
+       }
+
        public static ImageDescriptor getImageDescriptor(String path) {
                return imageDescriptorFromPlugin(ID, path);
        }