/** Inicialización del plugin para cargarlo desde el fichero workbench.properties */ public void initialize(PlugInContext context) throws Exception { // para internacionalización Locale currentLocale = I18N.getLocaleAsObject(); ResourceBundle bundle = ResourceBundle.getBundle( "com.geopista.ui.plugin.mobile.language.PluginMobileExtracti18n", currentLocale); I18N.plugInsResourceBundle.put(PluginMobileExtracti18n, bundle); FeatureInstaller featureInstaller = new FeatureInstaller(context.getWorkbenchContext()); EnableCheckFactory checkFactory = context.getCheckFactory(); featureInstaller.addMainMenuItem( this, new String[] {"Tools", MobilePluginI18NResource.GEOPISTAConfiguration_proyectMovil}, I18N.get(PluginMobileExtracti18n, MobilePluginI18NResource.MobileModifyPlugin_text), false, null, new MultiEnableCheck() .add(checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck()) .add(checkFactory.createAdminUserCheck())); ((WorkbenchGuiComponent) context.getWorkbenchContext().getIWorkbench().getGuiComponent()) .getToolBar("Movilidad") .addPlugIn( this.getIcon(), this, createEnableCheck(context.getWorkbenchContext()), context.getWorkbenchContext()); }