use of org.talend.dataquality.indicators.definition.userdefine.UDIndicatorDefinition in project tdq-studio-se by Talend.
the class NewUDIndicatorWizard method createAndSaveCWMFile.
public TypedReturnCode<Object> createAndSaveCWMFile(ModelElement cwmElement) {
UDIndicatorDefinition indicatorDefinition = (UDIndicatorDefinition) cwmElement;
UDIHelper.setUDICategory(indicatorDefinition, DefinitionHandler.getInstance().getUserDefinedCountIndicatorCategory());
IFolder folder = parameter.getFolderProvider().getFolderResource();
// ADD xqliu 2010-06-04 feature 13454
recordModificationDate(indicatorDefinition);
// ~ 13454
TypedReturnCode<Object> returnCode = ElementWriterFactory.getInstance().createIndicatorDefinitionWriter().create(indicatorDefinition, folder);
// MOD qiongli 2011-2-18,bug 19014.After creating UDI,reaload all indicators
DefinitionHandler.getInstance().reloadIndicatorsDefinitions();
return returnCode;
}
Aggregations