Fix Bug TDI-26705: Property name of ERROR_MESSAGE is inconsistent between displaying inside Outline and inside code .
https://jira.talendforge.org/browse/TDI-26705 git-svn-id: http://talendforge.org/svn/tos/trunk@109612 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
@@ -710,5 +710,43 @@ public class NodeUtil {
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @author jyhu
|
||||
* @aim Get Whether the nodelist contain virtual component.
|
||||
* @param nodeList: Node list
|
||||
* @return nodelist contain virtual component or not. true:contain;false:not contain
|
||||
*/
|
||||
public static boolean hasVirtualComponent(List<? extends INode> nodeList){
|
||||
boolean hasVirtualComponent = false;
|
||||
for(INode node:nodeList){
|
||||
if(node.isVirtualGenerateNode()){
|
||||
hasVirtualComponent = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return hasVirtualComponent;
|
||||
}
|
||||
/**
|
||||
* @author jyhu
|
||||
* @aim Get unique name of the graphica node from generating node.
|
||||
* @param node: Generated node
|
||||
* @return unique name of the graphica node.
|
||||
*/
|
||||
public static String getVirtualUniqueName(INode node){
|
||||
String uniqueName = node.getUniqueName();
|
||||
if(node.isVirtualGenerateNode()){
|
||||
List<? extends INode> nodeList = node.getProcess().getGraphicalNodes();
|
||||
for(INode graphicnode:nodeList){
|
||||
if(graphicnode.isGeneratedAsVirtualComponent()){
|
||||
String nodeUniqueName = graphicnode.getUniqueName();
|
||||
if(uniqueName.indexOf(nodeUniqueName)==0){
|
||||
uniqueName = nodeUniqueName;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return uniqueName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user