/** * Initializes the module. Use this method to perform all initial setup operations. This method is called only once in * a modules lifetime. If the initializing cannot be completed, throw a ModuleInitializeException to indicate the * error,. The module will not be available to the system. * * @param subSystem * the subSystem. * @throws ModuleInitializeException * if an error ocurred while initializing the module. */ public void initialize( final SubSystem subSystem ) throws ModuleInitializeException { if ( subSystem.getExtendedConfig().getBoolProperty( "org.pentaho.reporting.engine.classic.core.modules.gui.base.SwingDialogTranslation" ) ) { //$NON-NLS-1$ final ResourceBundle resources = ResourceBundle.getBundle( SwingCommonModule.BUNDLE_NAME ); final UIDefaults defaults = UIManager.getDefaults(); final Enumeration en = resources.getKeys(); while ( en.hasMoreElements() ) { try { final String keyName = (String) en.nextElement(); defaults.put( keyName, resources.getObject( keyName ) ); } catch ( Exception e ) { // Ignored; if it happens, we would not care that much .. } } } } }