Search in sources :

Example 1 with ITransformService

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;
}
Also used : ITransformService(com.amalto.workbench.service.bridge.ITransformService) WSTransformerV2(com.amalto.workbench.webservices.WSTransformerV2) TreeObject(com.amalto.workbench.models.TreeObject) WSView(com.amalto.workbench.webservices.WSView)

Aggregations

TreeObject (com.amalto.workbench.models.TreeObject)1 ITransformService (com.amalto.workbench.service.bridge.ITransformService)1 WSTransformerV2 (com.amalto.workbench.webservices.WSTransformerV2)1 WSView (com.amalto.workbench.webservices.WSView)1