Program: 119030
Project: 119030
Buggy source:
private void covertJobscriptOnPageChange(){
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICreateXtextProcessService.class)) {
    try {
      boolean isDirty=getEditor(2).isDirty();
      getEditor(2).doSave(null);
      IProcess2 oldProcess=getProcess();
      ICreateXtextProcessService n=CorePlugin.getDefault().getCreateXtextProcessService();
      Item item=oldProcess.getProperty().getItem();
      ProcessType processType=null;
      if (item instanceof ProcessItem) {
        processType=n.convertDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
 else       if (item instanceof JobletProcessItem) {
        processType=n.convertJobletDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
      if (item instanceof ProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
 else       if (item instanceof JobletProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
      oldProcess.getUpdateManager().updateAll();
      designerEditor.setDirty(isDirty);
      List<Node> nodes=(List<Node>)oldProcess.getGraphicalNodes();
      List<Node> newNodes=new ArrayList<Node>();
      newNodes.addAll(nodes);
      for (      Node node : newNodes) {
        node.getProcess().checkStartNodes();
        node.checkAndRefreshNode();
        IElementParameter ep=node.getElementParameter("String_Node_Str");
        if (ep != null && ep.getValue().equals(Boolean.FALSE)) {
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
        }
 else         if (ep != null && ep.getValue().equals(Boolean.TRUE)) {
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
        }
      }
    }
 catch (    PersistenceException e) {
    }
  }
}

Fixed version (ground truth):
private void covertJobscriptOnPageChange(){
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ICreateXtextProcessService.class)) {
    try {
      boolean isDirty=getEditor(2).isDirty();
      getEditor(2).doSave(null);
      IProcess2 oldProcess=getProcess();
      ICreateXtextProcessService n=CorePlugin.getDefault().getCreateXtextProcessService();
      Item item=oldProcess.getProperty().getItem();
      ProcessType processType=null;
      if (item instanceof ProcessItem) {
        processType=n.convertDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
 else       if (item instanceof JobletProcessItem) {
        processType=n.convertJobletDesignerEditorInput(((IFile)getEditor(2).getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
      }
      if (item instanceof ProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
 else       if (item instanceof JobletProcessItem) {
        ((Process)oldProcess).updateProcess(processType);
      }
      oldProcess.getUpdateManager().updateAll();
      designerEditor.setDirty(isDirty);
      List<Node> nodes=(List<Node>)oldProcess.getGraphicalNodes();
      List<Node> newNodes=new ArrayList<Node>();
      newNodes.addAll(nodes);
      for (      Node node : newNodes) {
        node.getProcess().checkStartNodes();
        node.checkAndRefreshNode();
        IElementParameter ep=node.getElementParameter("String_Node_Str");
        if (ep != null && ep.getValue().equals(Boolean.FALSE)) {
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
        }
 else         if (ep != null && ep.getValue().equals(Boolean.TRUE)) {
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
          node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
        }
        for (        IElementParameter param : node.getElementParameters()) {
          if (!param.getChildParameters().isEmpty()) {
            if (param.getValue() != null && param.getValue() instanceof String && ((String)param.getValue()).contains("String_Node_Str")) {
              String splited[]=((String)param.getValue()).split("String_Node_Str");
              String childNameNeeded=splited[0].trim();
              String valueChild=TalendQuoteUtils.removeQuotes(splited[1].trim());
              if (param.getChildParameters().containsKey(childNameNeeded)) {
                param.getChildParameters().get(childNameNeeded).setValue(valueChild);
              }
            }
          }
        }
      }
    }
 catch (    PersistenceException e) {
    }
  }
}