private void processNewMDIDescription( StepMeta stepMeta, TreeItem stepItem, StepMetaInterface metaInterface ) {
BeanInjectionInfo stepInjectionInfo = new BeanInjectionInfo( metaInterface.getClass() );
for ( BeanInjectionInfo.Group gr : stepInjectionInfo.getGroups() ) {
boolean rootGroup = StringUtils.isEmpty( gr.getName() );
TreeItem groupItem;
if ( !rootGroup ) {
groupItem = new TreeItem( stepItem, SWT.NONE );
groupItem.setText( gr.getName() );
groupItem.setText( 1, gr.getDescription() );
} else {
groupItem = null;
}
for ( BeanInjectionInfo.Property property : gr.getGroupProperties() ) {
TreeItem treeItem = new TreeItem( rootGroup ? stepItem : groupItem, SWT.NONE );
treeItem.setText( property.getName() );
treeItem.setText( 1, property.getDescription() );
TargetStepAttribute target = new TargetStepAttribute( stepMeta.getName(), property.getName(), !rootGroup );
treeItemTargetMap.put( treeItem, target );
SourceStepField source = targetSourceMapping.get( target );
if ( source != null ) {
treeItem.setText( 2, Const.NVL( source.getStepname() == null ? CONST_VALUE : source.getStepname(), "" ) );
treeItem.setText( 3, Const.NVL( source.getField(), "" ) );
}
}
}
}