ILayoutNode lnode = (ILayoutNode)liter.next();
if ((lnode.getNode().getElement() instanceof ConnectionInitialization) ||
(lnode.getNode().getElement() instanceof LocalVariableStatement)) {
Shape shape = (Shape)((Node)lnode.getNode());
DecorationNode decorationNode = (DecorationNode)shape.getChildren().get(0);
if ((lnode.getNode().getElement() instanceof ConnectionInitialization) && (decorationNode.isVisible() == false)) {
Node nodeCI = (Node)lnode.getNode();
//Original color of Line -> Integer = 11579568
shape.setLineColor(11579568);
decorationNode.setVisible(true);
Edge e = (Edge)nodeCI.getSourceEdges().get(0);
e.setVisible(true);
//System.out.println("RENEW - CI is Visible");
}
if ((lnode.getNode().getElement() instanceof LocalVariableStatement) && (decorationNode.isVisible() == false)) {
// 1.LocalVariableStatement
Node nodeLVS = (Node)lnode.getNode();
if (!nodeLVS.getChildren().isEmpty()) {
// 2.LocalVariableStatement
Node nodeSecondLVS = (Node)nodeLVS.getChildren().get(0);
//System.out.println("nodeSecondLVS: " + nodeSecondLVS.getElement());
if ((nodeSecondLVS.getElement() instanceof LocalVariableStatement) && (!nodeSecondLVS.getChildren().isEmpty())) {
// 1. LocalVariable
Node nodeLV = (Node)nodeSecondLVS.getChildren().get(0);
//System.out.println("nodeLV: " + nodeLV.getElement());
if ((nodeLV.getElement() instanceof LocalVariable) && (nodeLV.getChildren().size() == 2)) {
//2. & 3. LocalVariable
Node nodeFirstChildLV = (Node)nodeLV.getChildren().get(0);
Node nodeSecondChildLV = (Node)nodeLV.getChildren().get(1);
//System.out.println("nodeFirstChildLV: " + nodeFirstChildLV.getElement());
//System.out.println("nodeSecondChildLV: " + nodeSecondChildLV.getElement());
if ((nodeFirstChildLV.getElement() instanceof LocalVariable) && (nodeFirstChildLV.getChildren().isEmpty()) &&
(nodeSecondChildLV.getElement() instanceof LocalVariable) && (nodeSecondChildLV.getChildren().isEmpty())) {
//shape.setVisible(true);
//nodeLVS.setVisible(true);
//Original color of Line -> Integer = 11579568
shape.setLineColor(11579568);
decorationNode.setVisible(true);
if (!nodeLV.getSourceEdges().isEmpty()) {
Edge e = (Edge)nodeLV.getSourceEdges().get(0);