use of com.amalto.workbench.service.bridge.ITransformService in project tmdm-studio-se by Talend.
the class ServerTreeLabelProvider method filterName.
private String filterName(String label, TreeObject treeObject) {
String transformedName = label;
if (label == null || label.isEmpty()) {
return transformedName;
}
Object wsObject = treeObject.getWsObject();
ITransformService transformService = (ITransformService) GlobalServiceRegister.getDefault().getService(ITransformService.class);
if (wsObject instanceof WSTransformerV2) {
transformedName = transformService.transformToSilyProcessName(label, true);
} else if (wsObject instanceof WSView) {
transformedName = transformService.transformToSilyViewName(label, true);
}
return transformedName;
}
Aggregations