]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/eclipse/plugins/org.argeo.security.ui/src/main/java/org/argeo/security/ui/SecurityUiPlugin.java
Improve Security
[lgpl/argeo-commons.git] / security / eclipse / plugins / org.argeo.security.ui / src / main / java / org / argeo / security / ui / SecurityUiPlugin.java
index 5e165ad4f4726a21fd8793ab1ccfaec3631e2f60..bc05495b4299c2e990e225ea3c2afb5828b1d6f1 100644 (file)
@@ -1,5 +1,6 @@
 package org.argeo.security.ui;
 
+import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.osgi.framework.BundleContext;
 
@@ -13,7 +14,7 @@ public class SecurityUiPlugin extends AbstractUIPlugin {
 
        // The shared instance
        private static SecurityUiPlugin plugin;
-       
+
        /**
         * The constructor
         */
@@ -22,7 +23,10 @@ public class SecurityUiPlugin extends AbstractUIPlugin {
 
        /*
         * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+        * 
+        * @see
+        * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
+        * )
         */
        public void start(BundleContext context) throws Exception {
                super.start(context);
@@ -31,7 +35,10 @@ public class SecurityUiPlugin extends AbstractUIPlugin {
 
        /*
         * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+        * 
+        * @see
+        * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
+        * )
         */
        public void stop(BundleContext context) throws Exception {
                plugin = null;
@@ -40,11 +47,14 @@ public class SecurityUiPlugin extends AbstractUIPlugin {
 
        /**
         * Returns the shared instance
-        *
+        * 
         * @return the shared instance
         */
        public static SecurityUiPlugin getDefault() {
                return plugin;
        }
 
+       public static ImageDescriptor getImageDescriptor(String path) {
+               return imageDescriptorFromPlugin(PLUGIN_ID, path);
+       }
 }