/** * Returns this plug-in's unique identifier. * * @return the plugin's unique identifier */ public static String getPluginId() { return getDefault().getBundle().getSymbolicName(); }
/** * Returns this plug-in's resource bundle. * * @return the plugin's resource bundle */ public ResourceBundle getResourceBundle() { if (fResourceBundle == null) fResourceBundle= Platform.getResourceBundle(getBundle()); return fResourceBundle; }
/** * Returns this plug-in's unique identifier. * * @return the plugin's unique identifier */ public static String getPluginId() { return getDefault().getBundle().getSymbolicName(); }
/** * Returns this plug-in's resource bundle. * * @return the plugin's resource bundle */ public ResourceBundle getResourceBundle() { if (fResourceBundle == null) fResourceBundle= Platform.getResourceBundle(getBundle()); return fResourceBundle; }
public static ImageDescriptor getImageDescriptor(String relativePath) { if (fgComparePlugin == null) return null; IPath path= Utilities.getIconPath(null).append(relativePath); URL url= FileLocator.find(fgComparePlugin.getBundle(), path, null); if (url == null) return null; return ImageDescriptor.createFromURL(url); }
public static ImageDescriptor getImageDescriptor(String relativePath) { if (fgComparePlugin == null) return null; IPath path= Utilities.getIconPath(null).append(relativePath); URL url= FileLocator.find(fgComparePlugin.getBundle(), path, null); if (url == null) return null; return ImageDescriptor.createFromURL(url); }