1 20 21 package org.apache.directory.ldapstudio; 22 23 24 import org.eclipse.jface.resource.ImageDescriptor; 25 import org.eclipse.ui.plugin.AbstractUIPlugin; 26 import org.osgi.framework.BundleContext; 27 28 29 35 public class Activator extends AbstractUIPlugin 36 { 37 38 private static Activator plugin; 40 41 42 45 public Activator() 46 { 47 plugin = this; 48 } 49 50 51 54 public void start( BundleContext context ) throws Exception  55 { 56 super.start( context ); 57 } 58 59 60 63 public void stop( BundleContext context ) throws Exception  64 { 65 plugin = null; 66 super.stop( context ); 67 } 68 69 70 75 public static Activator getDefault() 76 { 77 return plugin; 78 } 79 80 81 88 public static ImageDescriptor getImageDescriptor( String path ) 89 { 90 return AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID, path ); 91 } 92 } 93 | Popular Tags |