/** * Creates a new module node for the given module object and report configuration. * * @param module the module for which to build a tree node. */ public ConfigTreeModuleNode( final Module module ) { super( module.getName() ); this.assignedKeys = new ArrayList<ConfigDescriptionEntry>(); this.module = module; configurationPrefix = ModuleNodeFactory.getPackage( this.module.getClass() ); }
} catch ( NoClassDefFoundError noClassDef ) { LOGGER.warn( "Unable to load module classes for " + this.module.getName() + ':' + noClassDef.getMessage() ); this.state = STATE_ERROR; } catch ( Exception e ) { if ( LOGGER.isDebugEnabled() ) { LOGGER.warn( "Unable to configure the module " + this.module.getName(), e ); } else if ( LOGGER.isWarnEnabled() ) { LOGGER.warn( "Unable to configure the module " + this.module.getName() );
/** * Returns a basic string representation of this SortModule. This should be used for debugging purposes only. * * @return a string representation of this module. * @see Object#toString() */ public String toString() { final StringBuilder buffer = new StringBuilder( 100 ); buffer.append( "SortModule: " ); buffer.append( this.position ); buffer.append( ' ' ); buffer.append( this.state.getModule().getName() ); buffer.append( ' ' ); buffer.append( this.state.getModule().getModuleClass() ); return buffer.toString(); }
return true; } catch ( NoClassDefFoundError noClassDef ) { LOGGER.warn( "Unable to load module classes for " + this.module.getName() + ':' + noClassDef.getMessage() ); this.state = STATE_ERROR; } catch ( ModuleInitializeException me ) { if ( LOGGER.isDebugEnabled() ) { LOGGER.warn( "Unable to initialize the module " + this.module.getName(), me ); } else if ( LOGGER.isWarnEnabled() ) { LOGGER.warn( "Unable to initialize the module " + this.module.getName() ); if ( LOGGER.isDebugEnabled() ) { LOGGER.warn( "Unable to initialize the module " + this.module.getName(), e ); } else if ( LOGGER.isWarnEnabled() ) { LOGGER.warn( "Unable to initialize the module " + this.module.getName() );
/** * Returns a basic string representation of this SortModule. This * should be used for debugging purposes only. * * @return a string representation of this module. * @see Object#toString() */ public String toString() { final StringBuilder buffer = new StringBuilder(100); buffer.append("SortModule: "); buffer.append(this.position); buffer.append(' '); buffer.append(this.state.getModule().getName()); buffer.append(' '); buffer.append(this.state.getModule().getModuleClass()); return buffer.toString(); }
LOGGER.warn("Unable to load module classes for " + this.module.getName() + ':' + noClassDef.getMessage()); this.state = STATE_ERROR; LOGGER.warn("Unable to initialize the module " + this.module.getName(), me); LOGGER.warn("Unable to initialize the module " + this.module.getName()); LOGGER.warn("Unable to initialize the module " + this.module.getName(), e); LOGGER.warn("Unable to initialize the module " + this.module.getName());
final ConfigTreeModuleNode node = (ConfigTreeModuleNode) value; final StringBuilder text = new StringBuilder( 100 ); text.append( node.getModule().getName() );
/** * Defines the currently edited module and initializes an module editor for that module. * * @param module the module that should be edited. * @param config the report configuration that supplies the values for the module. * @param entries a list of entries which should be edited. */ public void editModule( final Module module, final HierarchicalConfiguration config, final ConfigDescriptionEntry[] entries ) { final Object[] params = new Object[ 4 ]; params[ 0 ] = module.getName(); params[ 1 ] = module.getMajorVersion(); params[ 2 ] = module.getMinorVersion(); params[ 3 ] = module.getPatchLevel(); moduleNameField.setText( moduleNameFormat.format( params ) ); producerField.setText( module.getProducer() ); descriptionArea.setText( module.getDescription() ); editorArea.removeAll(); moduleEditor = EditorFactory.getInstance().getModule( module, config, entries ); if ( moduleEditor != null ) { editorArea.add( moduleEditor.getComponent() ); moduleEditor.reset(); } invalidate(); }
LOGGER.warn( "Module " + module.getName() + " does not define a major version." ); } else { final int compare = acceptVersion( moduleRequirement.getMajorVersion(), LOGGER.warn( "Module " + module.getName() + " does not define a minor version." ); } else { final int compare = acceptVersion( moduleRequirement.getMinorVersion(), LOGGER.debug( "Module " + module.getName() + " does not define a patch level." ); } else { if ( acceptVersion( moduleRequirement.getPatchLevel(),
LOGGER.warn( "Module " + module.getName() + ": required version: " + moduleInfo + ", but found Version: \n" + module ); final PackageState state = new PackageState( module, PackageState.STATE_ERROR );
LOGGER.warn("Module " + module.getName() + ": required version: " + moduleInfo + ", but found Version: \n" + module); final PackageState state = new PackageState(module, PackageState.STATE_ERROR);