nus-yam/ex-repair huggingface dataset:
Program: 119735
Project: 119735
Buggy source:
@Override public boolean hasChildren(Object element){
  return getChildren(element).length > 0;
}

Fixed version (ground truth):
@Override public boolean hasChildren(Object element){
  RepositoryNodeType type=(RepositoryNodeType)((RepositoryNode)element).getProperties(EProperties.CONTENT_TYPE);
  if (type == RepositoryNodeType.TABLE) {
    return true;
  }
  return getChildren(element).length > 0;
}
Program: 119736
Project: 119736
Buggy source:
@Override @SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (isRefresh) {
    RepositoryNode repositoryNode=(RepositoryNode)parentElement;
    RepositoryNode rootNode=repositoryNodeManager.getRoot(repositoryNode);
    refreshRootNode(rootNode);
    rootNode.getChildren().clear();
    DatabaseConnection metadataConnection=(DatabaseConnection)((ConnectionItem)repositoryNode.getObject().getProperty().getItem()).getConnection();
    boolean isBuildIn=((SqlBuilderRepositoryObject)rootNode.getObject()).isBuildIn();
    createTables(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    createQueries(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    isRefresh=false;
    return repositoryNode.getChildren().toArray();
  }
 else {
    return ((RepositoryNode)parentElement).getChildren().toArray();
  }
}

Fixed version (ground truth):
@Override @SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  RepositoryNode repositoryNode=(RepositoryNode)parentElement;
  RepositoryNode rootNode=repositoryNodeManager.getRoot(repositoryNode);
  boolean isBuildIn=((SqlBuilderRepositoryObject)rootNode.getObject()).isBuildIn();
  if (isRefresh) {
    refreshRootNode(rootNode);
    rootNode.getChildren().clear();
    DatabaseConnection metadataConnection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
    createTables(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    createQueries(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    isRefresh=false;
    return repositoryNode.getChildren().toArray();
  }
 else {
    if (!repositoryNode.isInitialized()) {
      RepositoryNodeType type=(RepositoryNodeType)repositoryNode.getProperties(EProperties.CONTENT_TYPE);
      if (type == RepositoryNodeType.TABLE) {
        try {
          MetadataTable table=((MetadataTableRepositoryObject)repositoryNode.getObject()).getTable();
          DatabaseConnectionItem connItem=repositoryNodeManager.getItem(repositoryNode);
          DatabaseConnection dbConn=(DatabaseConnection)connItem.getConnection();
          IMetadataConnection iMetadataConnection=ConvertionHelper.convert(dbConn);
          repositoryNode.getChildren().clear();
          repositoryNodeManager.modifyOldRepositoryNode(dbConn,iMetadataConnection,repositoryNode);
          createColumns(repositoryNode,rootNode.getObject(),table,isBuildIn);
          repositoryNode.setInitialized(true);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
    }
    return repositoryNode.getChildren().toArray();
  }
}
Program: 119737
Project: 119737
Buggy source:
/** 
 * dev Comment method "ModifyOldConnection".
 * @param tablesFromEMF
 * @param iMetadataConnection
 * @param tablesFromDB
 */
@SuppressWarnings("String_Node_Str") private void modifyOldConnection(List<MetadataTable> tablesFromEMF,IMetadataConnection iMetadataConnection,List<MetadataTable> tablesFromDB,RepositoryNode oldNode){
  for (  MetadataTable tableFromDB : tablesFromDB) {
    MetadataTable tableFromModel=null;
    for (    MetadataTable tableFromEMF : tablesFromEMF) {
      if (tableFromDB.getSourceName().equals(tableFromEMF.getSourceName())) {
        tableFromModel=tableFromEMF;
      }
    }
    if (tableFromModel != null) {
      List<MetadataColumn> columnsFromDB=new ArrayList<MetadataColumn>();
      columnsFromDB.addAll(ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(iMetadataConnection,tableFromDB.getSourceName()));
      List<MetadataColumn> columnsFromEMF=tableFromModel.getColumns();
      fixedColumns(columnsFromDB,columnsFromEMF);
    }
  }
  fixedTables(tablesFromDB,tablesFromEMF,iMetadataConnection,oldNode);
}

Fixed version (ground truth):
/** 
 * dev Comment method "ModifyOldConnection".
 * @param tablesFromEMF
 * @param iMetadataConnection
 * @param tablesFromDB
 */
@SuppressWarnings("String_Node_Str") private void modifyOldConnection(List<MetadataTable> tablesFromEMF,IMetadataConnection iMetadataConnection,List<MetadataTable> tablesFromDB,RepositoryNode oldNode){
  for (  MetadataTable tableFromDB : tablesFromDB) {
    MetadataTable tableFromModel=null;
    for (    MetadataTable tableFromEMF : tablesFromEMF) {
      if (tableFromDB.getSourceName().equals(tableFromEMF.getSourceName())) {
        tableFromModel=tableFromEMF;
        break;
      }
    }
    if (tableFromModel != null) {
      List<MetadataColumn> columnsFromDB=new ArrayList<MetadataColumn>();
      columnsFromDB.addAll(ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(iMetadataConnection,tableFromDB.getSourceName()));
      List<MetadataColumn> columnsFromEMF=tableFromModel.getColumns();
      fixedColumns(columnsFromDB,columnsFromEMF);
    }
  }
  fixedTables(tablesFromDB,tablesFromEMF,iMetadataConnection,oldNode);
}
Program: 119740
Project: 119740
Buggy source:
/** 
 * be a RepositoryNode with database infomation.
 * @param repositoryNode RepositoryNode
 * @return RepositoryNode
 */
public static RepositoryNode getRoot(RepositoryNode repositoryNode){
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.FOLDER) {
    throw new RuntimeException(Messages.getString("String_Node_Str"));
  }
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.DATABASE) {
    return repositoryNode;
  }
  return getRoot(repositoryNode.getParent());
}

Fixed version (ground truth):
/** 
 * be a RepositoryNode with database infomation.
 * @param repositoryNode RepositoryNode
 * @return RepositoryNode
 */
public static RepositoryNode getRoot(RepositoryNode repositoryNode){
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.FOLDER) {
    for (    IRepositoryNode node : repositoryNode.getChildren()) {
      if (getRepositoryType((RepositoryNode)node) == RepositoryNodeType.DATABASE) {
        return (RepositoryNode)node;
      }
    }
    throw new RuntimeException(Messages.getString("String_Node_Str"));
  }
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.DATABASE) {
    return repositoryNode;
  }
  return getRoot(repositoryNode.getParent());
}
Program: 119741
Project: 119741
Buggy source:
/** 
 * dev Comment method "modifyOldOneTableFromEMF".
 * @param metaFromEMF
 * @param iMetadataConnection
 * @param db
 */
@SuppressWarnings("String_Node_Str") private void modifyOldOneTableFromEMF(List<MetadataTable> metaFromEMF,IMetadataConnection iMetadataConnection,MetadataTable db){
  boolean flag=true;
  for (  MetadataTable emf : metaFromEMF) {
    if (db.getSourceName().equals(emf.getSourceName())) {
      flag=false;
      break;
    }
  }
  if (flag) {
    MetadataTable table=ConnectionFactory.eINSTANCE.createMetadataTable();
    table.setSourceName(db.getSourceName());
    table.setLabel("String_Node_Str");
    List<TdColumn> columns=ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(iMetadataConnection,table.getSourceName());
    for (    MetadataColumn column : columns) {
      MetadataColumn column1=ConnectionFactory.eINSTANCE.createMetadataColumn();
      column1.setOriginalField(column.getOriginalField());
      column1.setLabel("String_Node_Str");
      table.getColumns().add(column1);
    }
    metaFromEMF.add(table);
  }
}

Fixed version (ground truth):
/** 
 * dev Comment method "modifyOldOneTableFromEMF".
 * @param metaFromEMF
 * @param iMetadataConnection
 * @param db
 */
@SuppressWarnings("String_Node_Str") private void modifyOldOneTableFromEMF(List<MetadataTable> metaFromEMF,IMetadataConnection iMetadataConnection,MetadataTable db){
  boolean flag=true;
  for (  MetadataTable emf : metaFromEMF) {
    if (db.getSourceName().equals(emf.getSourceName())) {
      flag=false;
      break;
    }
  }
  if (flag) {
    MetadataTable table=ConnectionFactory.eINSTANCE.createMetadataTable();
    table.setSourceName(db.getSourceName());
    table.setLabel("String_Node_Str");
    metaFromEMF.add(table);
  }
}
Program: 119742
Project: 119742
Buggy source:
private void doExpand(){
  treeViewer.expandAll();
  treeViewer.collapseAll();
}

Fixed version (ground truth):
private void doExpand(){
  treeViewer.expandToLevel(2);
  treeViewer.collapseAll();
}
Program: 119743
Project: 119743
Buggy source:
public boolean hasChildren(Object element){
  return getChildren(element).length > 0;
}

Fixed version (ground truth):
public boolean hasChildren(Object element){
  RepositoryNodeType type=(RepositoryNodeType)((RepositoryNode)element).getProperties(EProperties.CONTENT_TYPE);
  if (type == RepositoryNodeType.TABLE) {
    return true;
  }
  return getChildren(element).length > 0;
}
Program: 119744
Project: 119744
Buggy source:
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (isRefresh) {
    RepositoryNode repositoryNode=(RepositoryNode)parentElement;
    RepositoryNode rootNode=repositoryNodeManager.getRoot(repositoryNode);
    refreshRootNode(rootNode);
    rootNode.getChildren().clear();
    DatabaseConnection metadataConnection=(DatabaseConnection)((ConnectionItem)repositoryNode.getObject().getProperty().getItem()).getConnection();
    boolean isBuildIn=((SqlBuilderRepositoryObject)rootNode.getObject()).isBuildIn();
    createTables(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    createQueries(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    isRefresh=false;
    return repositoryNode.getChildren().toArray();
  }
 else {
    return ((RepositoryNode)parentElement).getChildren().toArray();
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  RepositoryNode repositoryNode=(RepositoryNode)parentElement;
  RepositoryNode rootNode=repositoryNodeManager.getRoot(repositoryNode);
  boolean isBuildIn=((SqlBuilderRepositoryObject)rootNode.getObject()).isBuildIn();
  if (isRefresh) {
    refreshRootNode(rootNode);
    rootNode.getChildren().clear();
    DatabaseConnection metadataConnection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
    createTables(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    createQueries(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    isRefresh=false;
    return repositoryNode.getChildren().toArray();
  }
 else {
    if (!repositoryNode.isInitialized()) {
      RepositoryNodeType type=(RepositoryNodeType)repositoryNode.getProperties(EProperties.CONTENT_TYPE);
      if (type == RepositoryNodeType.TABLE) {
        try {
          MetadataTable table=((MetadataTableRepositoryObject)repositoryNode.getObject()).getTable();
          DatabaseConnectionItem connItem=repositoryNodeManager.getItem(repositoryNode);
          DatabaseConnection dbConn=(DatabaseConnection)connItem.getConnection();
          IMetadataConnection iMetadataConnection=ConvertionHelper.convert(dbConn);
          repositoryNode.getChildren().clear();
          repositoryNodeManager.modifyOldRepositoryNode(dbConn,iMetadataConnection,repositoryNode);
          createColumns(repositoryNode,rootNode.getObject(),table,isBuildIn);
          repositoryNode.setInitialized(true);
        }
 catch (        Exception e) {
          ExceptionHandler.process(e);
        }
      }
    }
    return repositoryNode.getChildren().toArray();
  }
}
Program: 119745
Project: 119745
Buggy source:
/** 
 * dev Comment method "ModifyOldConnection".
 * @param tablesFromEMF
 * @param iMetadataConnection
 * @param tablesFromDB
 */
@SuppressWarnings("String_Node_Str") private void modifyOldConnection(List<MetadataTable> tablesFromEMF,IMetadataConnection iMetadataConnection,List<MetadataTable> tablesFromDB,RepositoryNode oldNode){
  for (  MetadataTable tableFromDB : tablesFromDB) {
    MetadataTable tableFromModel=null;
    for (    MetadataTable tableFromEMF : tablesFromEMF) {
      if (tableFromDB.getSourceName().equals(tableFromEMF.getSourceName())) {
        tableFromModel=tableFromEMF;
      }
    }
    if (tableFromModel != null) {
      List<MetadataColumn> columnsFromDB=new ArrayList<MetadataColumn>();
      columnsFromDB.addAll(ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(iMetadataConnection,tableFromDB.getSourceName()));
      List<MetadataColumn> columnsFromEMF=tableFromModel.getColumns();
      fixedColumns(columnsFromDB,columnsFromEMF);
    }
  }
  fixedTables(tablesFromDB,tablesFromEMF,iMetadataConnection,oldNode);
}

Fixed version (ground truth):
/** 
 * dev Comment method "ModifyOldConnection".
 * @param tablesFromEMF
 * @param iMetadataConnection
 * @param tablesFromDB
 */
@SuppressWarnings("String_Node_Str") private void modifyOldConnection(List<MetadataTable> tablesFromEMF,IMetadataConnection iMetadataConnection,List<MetadataTable> tablesFromDB,RepositoryNode oldNode){
  for (  MetadataTable tableFromDB : tablesFromDB) {
    MetadataTable tableFromModel=null;
    for (    MetadataTable tableFromEMF : tablesFromEMF) {
      if (tableFromDB.getSourceName().equals(tableFromEMF.getSourceName())) {
        tableFromModel=tableFromEMF;
        break;
      }
    }
    if (tableFromModel != null) {
      List<MetadataColumn> columnsFromDB=new ArrayList<MetadataColumn>();
      columnsFromDB.addAll(ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(iMetadataConnection,tableFromDB.getSourceName()));
      List<MetadataColumn> columnsFromEMF=tableFromModel.getColumns();
      fixedColumns(columnsFromDB,columnsFromEMF);
    }
  }
  fixedTables(tablesFromDB,tablesFromEMF,iMetadataConnection,oldNode);
}
Program: 119748
Project: 119748
Buggy source:
/** 
 * be a RepositoryNode with database infomation.
 * @param repositoryNode RepositoryNode
 * @return RepositoryNode
 */
public static RepositoryNode getRoot(RepositoryNode repositoryNode){
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.FOLDER) {
    throw new RuntimeException(Messages.getString("String_Node_Str"));
  }
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.DATABASE) {
    return repositoryNode;
  }
  return getRoot(repositoryNode.getParent());
}

Fixed version (ground truth):
/** 
 * be a RepositoryNode with database infomation.
 * @param repositoryNode RepositoryNode
 * @return RepositoryNode
 */
public static RepositoryNode getRoot(RepositoryNode repositoryNode){
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.FOLDER) {
    for (    IRepositoryNode node : repositoryNode.getChildren()) {
      if (getRepositoryType((RepositoryNode)node) == RepositoryNodeType.DATABASE) {
        return (RepositoryNode)node;
      }
    }
    throw new RuntimeException(Messages.getString("String_Node_Str"));
  }
  if (getRepositoryType(repositoryNode) == RepositoryNodeType.DATABASE) {
    return repositoryNode;
  }
  return getRoot(repositoryNode.getParent());
}
Program: 119749
Project: 119749
Buggy source:
/** 
 * dev Comment method "modifyOldOneTableFromEMF".
 * @param metaFromEMF
 * @param iMetadataConnection
 * @param db
 */
@SuppressWarnings("String_Node_Str") private void modifyOldOneTableFromEMF(List<MetadataTable> metaFromEMF,IMetadataConnection iMetadataConnection,MetadataTable db){
  boolean flag=true;
  for (  MetadataTable emf : metaFromEMF) {
    if (db.getSourceName().equals(emf.getSourceName())) {
      flag=false;
      break;
    }
  }
  if (flag) {
    MetadataTable table=ConnectionFactory.eINSTANCE.createMetadataTable();
    table.setSourceName(db.getSourceName());
    table.setLabel("String_Node_Str");
    List<TdColumn> columns=ExtractMetaDataFromDataBase.returnMetadataColumnsFormTable(iMetadataConnection,table.getSourceName());
    for (    MetadataColumn column : columns) {
      MetadataColumn column1=ConnectionFactory.eINSTANCE.createMetadataColumn();
      column1.setOriginalField(column.getOriginalField());
      column1.setLabel("String_Node_Str");
      table.getColumns().add(column1);
    }
    metaFromEMF.add(table);
  }
}

Fixed version (ground truth):
/** 
 * dev Comment method "modifyOldOneTableFromEMF".
 * @param metaFromEMF
 * @param iMetadataConnection
 * @param db
 */
@SuppressWarnings("String_Node_Str") private void modifyOldOneTableFromEMF(List<MetadataTable> metaFromEMF,IMetadataConnection iMetadataConnection,MetadataTable db){
  boolean flag=true;
  for (  MetadataTable emf : metaFromEMF) {
    if (db.getSourceName().equals(emf.getSourceName())) {
      flag=false;
      break;
    }
  }
  if (flag) {
    MetadataTable table=ConnectionFactory.eINSTANCE.createMetadataTable();
    table.setSourceName(db.getSourceName());
    table.setLabel("String_Node_Str");
    metaFromEMF.add(table);
  }
}
Program: 119750
Project: 119750
Buggy source:
private void doExpand(){
  treeViewer.expandAll();
  treeViewer.collapseAll();
}

Fixed version (ground truth):
private void doExpand(){
  treeViewer.expandToLevel(2);
  treeViewer.collapseAll();
}
Program: 119751
Project: 119751
Buggy source:
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  List<IProcessConvertService> processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}

Fixed version (ground truth):
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  if (processConvertServices == null || processConvertServices.size() == 0) {
    processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  }
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}
Program: 119752
Project: 119752
Buggy source:
public boolean shouldRunAsExport(){
  List<? extends INode> generatedNodes=process.getGeneratingNodes();
  try {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IMRProcessService.class)) {
      IMRProcessService mrService=(IMRProcessService)GlobalServiceRegister.getDefault().getService(IMRProcessService.class);
      for (      INode node : generatedNodes) {
        if (node.getComponent() != null && "String_Node_Str".equals(node.getComponent().getName())) {
          IElementParameter elementParameter=node.getElementParameter("String_Node_Str");
          if (elementParameter != null) {
            Object value=elementParameter.getValue();
            if (value != null && !"String_Node_Str".equals(value)) {
              IRepositoryViewObject lastVersion=RunProcessPlugin.getDefault().getRepositoryService().getProxyRepositoryFactory().getLastVersion(value.toString());
              if (lastVersion != null) {
                boolean hasMrSubProcess=mrService.isMapReduceItem(lastVersion.getProperty().getItem());
                if (hasMrSubProcess) {
                  return true;
                }
              }
            }
          }
        }
      }
    }
  }
 catch (  PersistenceException e) {
    return false;
  }
  return false;
}

Fixed version (ground truth):
public boolean shouldRunAsExport(){
  List<? extends INode> generatedNodes=process.getGeneratingNodes();
  try {
    for (    INode node : generatedNodes) {
      if (node.getComponent() != null && "String_Node_Str".equals(node.getComponent().getName())) {
        IElementParameter elementParameter=node.getElementParameter("String_Node_Str");
        if (elementParameter != null) {
          Object value=elementParameter.getValue();
          if (value != null && !"String_Node_Str".equals(value)) {
            IRepositoryViewObject lastVersion=RunProcessPlugin.getDefault().getRepositoryService().getProxyRepositoryFactory().getLastVersion(value.toString());
            if (lastVersion != null) {
              boolean hasMrSubProcess=hasMrSubProcess(lastVersion.getProperty().getItem());
              if (hasMrSubProcess) {
                return true;
              }
            }
          }
        }
      }
    }
  }
 catch (  PersistenceException e) {
    return false;
  }
  return false;
}
Program: 119753
Project: 119753
Buggy source:
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  if (processConvertServices == null || processConvertServices.size() == 0) {
    processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  }
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}

Fixed version (ground truth):
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  List<IProcessConvertService> processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}
Program: 119754
Project: 119754
Buggy source:
public boolean shouldRunAsExport(){
  List<? extends INode> generatedNodes=process.getGeneratingNodes();
  try {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IMRProcessService.class)) {
      IMRProcessService mrService=(IMRProcessService)GlobalServiceRegister.getDefault().getService(IMRProcessService.class);
      for (      INode node : generatedNodes) {
        if (node.getComponent() != null && "String_Node_Str".equals(node.getComponent().getName())) {
          IElementParameter elementParameter=node.getElementParameter("String_Node_Str");
          if (elementParameter != null) {
            Object value=elementParameter.getValue();
            if (value != null && !"String_Node_Str".equals(value)) {
              IRepositoryViewObject lastVersion=RunProcessPlugin.getDefault().getRepositoryService().getProxyRepositoryFactory().getLastVersion(value.toString());
              if (lastVersion != null) {
                boolean hasMrSubProcess=mrService.isMapReduceItem(lastVersion.getProperty().getItem());
                if (hasMrSubProcess) {
                  return true;
                }
              }
            }
          }
        }
      }
    }
  }
 catch (  PersistenceException e) {
    return false;
  }
  return false;
}

Fixed version (ground truth):
public boolean shouldRunAsExport(){
  List<? extends INode> generatedNodes=process.getGeneratingNodes();
  try {
    for (    INode node : generatedNodes) {
      if (node.getComponent() != null && "String_Node_Str".equals(node.getComponent().getName())) {
        IElementParameter elementParameter=node.getElementParameter("String_Node_Str");
        if (elementParameter != null) {
          Object value=elementParameter.getValue();
          if (value != null && !"String_Node_Str".equals(value)) {
            IRepositoryViewObject lastVersion=RunProcessPlugin.getDefault().getRepositoryService().getProxyRepositoryFactory().getLastVersion(value.toString());
            if (lastVersion != null) {
              boolean hasMrSubProcess=hasMrSubProcess(lastVersion.getProperty().getItem());
              if (hasMrSubProcess) {
                return true;
              }
            }
          }
        }
      }
    }
  }
 catch (  PersistenceException e) {
    return false;
  }
  return false;
}
Program: 119758
Project: 119758
Buggy source:
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  if (processConvertServices == null || processConvertServices.size() == 0) {
    processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  }
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}

Fixed version (ground truth):
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  List<IProcessConvertService> processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}
Program: 119759
Project: 119759
Buggy source:
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  List<IProcessConvertService> processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}

Fixed version (ground truth):
public IProcess getProcessFromItemByExtendion(Item item,boolean loadScreenshots){
  IProcess process=null;
  if (processConvertServices == null || processConvertServices.size() == 0) {
    processConvertServices=ProcessConvertManager.getInstance().extractAllConvertServices();
  }
  for (  IProcessConvertService service : processConvertServices) {
    process=service.getProcessFromItem(item,loadScreenshots);
    if (process != null) {
      break;
    }
  }
  return process;
}
Program: 119763
Project: 119763
Buggy source:
private void create() throws MessageQueueException {
  if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
    throw new MessageQueueException("String_Node_Str",-1);
  }
  String fullname="String_Node_Str" + queueName;
  String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  boolean transactional=false;
  msmqHandle=Queue.create(fullname,qLabel,transactional);
}

Fixed version (ground truth):
private void create() throws MessageQueueException {
  if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
    throw new MessageQueueException("String_Node_Str",-1);
  }
  String fullname="String_Node_Str" + queueName;
  String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  boolean transactional=false;
  msmqHandle=Queue.create(fullname,qLabel,transactional);
  System.out.println("String_Node_Str" + fullname + "String_Node_Str");
}
Program: 119764
Project: 119764
Buggy source:
public void open() throws MessageQueueException {
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    if (bTried) {
      System.out.println("String_Node_Str" + ex1);
      bTried=false;
      create();
    }
 else {
      throw ex1;
    }
  }
}

Fixed version (ground truth):
public void open() throws MessageQueueException {
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    if (bTried) {
      System.out.println("String_Node_Str" + queueName + "String_Node_Str"+ ex1);
      bTried=false;
      create();
    }
 else {
      throw ex1;
    }
  }
}
Program: 119765
Project: 119765
Buggy source:
/** 
 * DOC hcyi Comment method "checkHasMultiPrejobOrPostJobComponents".
 */
private void checkHasMultiPrejobOrPostJobComponents(){
  if (PluginChecker.isJobLetPluginLoaded()) {
    IJobletProviderService jobletService=(IJobletProviderService)GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);
    if (jobletService != null) {
      if (jobletService.isJobletComponent(this)) {
        Map<String,INode> multiNodes=new HashMap<String,INode>();
        for (        INode proGraphicNode : process.getGraphicalNodes()) {
          boolean jobletComponent=jobletService.isJobletComponent(proGraphicNode);
          if (jobletComponent) {
            for (            INode node : jobletService.getGraphNodesForJoblet(proGraphicNode)) {
              if (("String_Node_Str").equals(node.getUniqueName())) {
                continue;
              }
              checktPreOrPost(multiNodes,node);
            }
          }
 else {
            if (("String_Node_Str").equals(proGraphicNode.getUniqueName())) {
              continue;
            }
            checktPreOrPost(multiNodes,proGraphicNode);
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC hcyi Comment method "checkHasMultiPrejobOrPostJobComponents".
 */
private void checkHasMultiPrejobOrPostJobComponents(){
  Map<String,INode> multiNodes=new HashMap<String,INode>();
  if (PluginChecker.isJobLetPluginLoaded()) {
    IJobletProviderService jobletService=(IJobletProviderService)GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);
    if (jobletService != null) {
      List<INode> joblets=new ArrayList<INode>();
      for (      INode proGraphicNode : process.getGraphicalNodes()) {
        boolean jobletComponent=jobletService.isJobletComponent(proGraphicNode);
        if (jobletComponent) {
          joblets.add(proGraphicNode);
        }
 else {
          if (("String_Node_Str").equals(proGraphicNode.getUniqueName())) {
            continue;
          }
          checktPreOrPost(multiNodes,proGraphicNode);
        }
      }
      for (      INode jNode : joblets) {
        for (        INode node : jobletService.getGraphNodesForJoblet(jNode)) {
          if (("String_Node_Str").equals(node.getUniqueName())) {
            continue;
          }
          checktPreOrPost(multiNodes,node);
        }
      }
    }
  }
}
Program: 119766
Project: 119766
Buggy source:
public void createTable(){
  table=new Table(scrolledCompositeFileViewer,SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION);
  table.setLayoutData(new GridData(GridData.FILL_BOTH));
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  TableColumn tableName=new TableColumn(table,SWT.NONE);
  tableName.setText(Messages.getString("String_Node_Str"));
  tableName.setWidth(250);
  TableColumn nbColumns=new TableColumn(table,SWT.NONE);
  nbColumns.setText(Messages.getString("String_Node_Str"));
  nbColumns.setWidth(100);
  TableColumn lastRe=new TableColumn(table,SWT.NONE);
  lastRe.setText(Messages.getString("String_Node_Str"));
  lastRe.setWidth(100);
  TableColumn desc=new TableColumn(table,SWT.NONE);
  desc.setText(Messages.getString("String_Node_Str"));
  desc.setWidth(250);
  scrolledCompositeFileViewer.setContent(table);
  scrolledCompositeFileViewer.setMinSize(table.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  downloadproperty=new ImportExchangeProperty();
  table.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      TableItem[] itemList=table.getItems();
      for (int i=0; i < itemList.length; i++) {
        if (table.isSelected(i)) {
          downloadproperty.setDownloadUrl(compatible.get(i).getLinkDownload());
          downloadproperty.setFileName(compatible.get(i).getLabel() + "String_Node_Str");
        }
      }
    }
  }
);
}

Fixed version (ground truth):
public void createTable(){
  table=new Table(scrolledCompositeFileViewer,SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION);
  table.setLayoutData(new GridData(GridData.FILL_BOTH));
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  TableColumn tableName=new TableColumn(table,SWT.NONE);
  tableName.setText(Messages.getString("String_Node_Str"));
  tableName.setWidth(250);
  TableColumn nbColumns=new TableColumn(table,SWT.NONE);
  nbColumns.setText(Messages.getString("String_Node_Str"));
  nbColumns.setWidth(100);
  TableColumn lastRe=new TableColumn(table,SWT.NONE);
  lastRe.setText(Messages.getString("String_Node_Str"));
  lastRe.setWidth(100);
  TableColumn desc=new TableColumn(table,SWT.NONE);
  desc.setText(Messages.getString("String_Node_Str"));
  desc.setWidth(250);
  scrolledCompositeFileViewer.setContent(table);
  scrolledCompositeFileViewer.setMinSize(table.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  downloadproperty=new ImportExchangeProperty();
  table.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      TableItem[] itemList=table.getItems();
      for (int i=0; i < itemList.length; i++) {
        if (table.isSelected(i)) {
          downloadproperty.setDownloadUrl(compatible.get(i).getLinkDownload());
          downloadproperty.setFileName(compatible.get(i).getFilename());
        }
      }
    }
  }
);
}
Program: 119767
Project: 119767
Buggy source:
public void widgetSelected(SelectionEvent e){
  Combo comboControl=(Combo)e.getSource();
  String value=comboControl.getText();
  IPreferenceStore preferenceStore=ExchangePlugin.getDefault().getPreferenceStore();
  preferenceStore.setValue("String_Node_Str",value);
  version=value;
  progressBarMessage=Messages.getString("String_Node_Str");
  findChoiceExchange();
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  Combo comboControl=(Combo)e.getSource();
  String value=comboControl.getText();
  IPreferenceStore preferenceStore=ExchangePlugin.getDefault().getPreferenceStore();
  preferenceStore.setValue("String_Node_Str",value);
  version=value;
  progressBarMessage=Messages.getString("String_Node_Str");
  findChoiceExchange();
}
Program: 119768
Project: 119768
Buggy source:
protected Control createDialogArea(Composite parent){
  Composite exchangeDialogCom=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.makeColumnsEqualWidth=false;
  layout.marginWidth=0;
  exchangeDialogCom.setLayout(layout);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  exchangeDialogCom.setLayoutData(gridData);
  new ImportCompatibleEcoComponentsComposite(exchangeDialogCom,exchangeDialogCom.getShell(),false);
  return parent;
}

Fixed version (ground truth):
@Override protected Control createDialogArea(Composite parent){
  Composite exchangeDialogCom=new Composite(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.makeColumnsEqualWidth=false;
  layout.marginWidth=0;
  exchangeDialogCom.setLayout(layout);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  exchangeDialogCom.setLayoutData(gridData);
  new ImportCompatibleEcoComponentsComposite(exchangeDialogCom,exchangeDialogCom.getShell(),false);
  return parent;
}
Program: 119769
Project: 119769
Buggy source:
public void run(){
  compatible=ComponentSearcher.getImportComponentExtensions(version,ExchangeUtils.getCurrentLanguage(),categoryCombo.getSelectionIndex() >= 0 ? fCategorys.get(categoryCombo.getSelectionIndex()).getCategoryId() : "String_Node_Str");
  updateTable(compatible);
}

Fixed version (ground truth):
@Override public void run(){
  compatible=ComponentSearcher.getImportComponentExtensions(version,ExchangeUtils.getCurrentLanguage(),categoryCombo.getSelectionIndex() >= 0 ? fCategorys.get(categoryCombo.getSelectionIndex()).getCategoryId() : "String_Node_Str");
  updateTable(compatible);
}
Program: 119771
Project: 119771
Buggy source:
/** 
 * There will create three radio button.
 */
private void creatOptions(Composite exchangeDialogCom){
  Group group=new Group(exchangeDialogCom,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.numColumns=5;
  layout.makeColumnsEqualWidth=false;
  layout.marginWidth=5;
  group.setLayout(layout);
  group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  creatCategory(group);
  category=categoryCombo.getText();
  creatTosVersionFilter(group,true);
  version=versionCombo.getText();
  Button refresh=new Button(group,SWT.PUSH);
  refresh.setImage(ImageProvider.getImage(EImage.REFRESH_ICON));
  refresh.setToolTipText(Messages.getString("String_Node_Str"));
  refresh.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      progressBarMessage=Messages.getString("String_Node_Str");
      findChoiceExchange();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * There will create three radio button.
 */
private void creatOptions(Composite exchangeDialogCom){
  Group group=new Group(exchangeDialogCom,SWT.NONE);
  GridLayout layout=new GridLayout();
  layout.numColumns=5;
  layout.makeColumnsEqualWidth=false;
  layout.marginWidth=5;
  group.setLayout(layout);
  group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  creatCategory(group);
  category=categoryCombo.getText();
  creatTosVersionFilter(group,true);
  version=versionCombo.getText();
  Button refresh=new Button(group,SWT.PUSH);
  refresh.setImage(ImageProvider.getImage(EImage.REFRESH_ICON));
  refresh.setToolTipText(Messages.getString("String_Node_Str"));
  refresh.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      progressBarMessage=Messages.getString("String_Node_Str");
      findChoiceExchange();
    }
  }
);
}
Program: 119772
Project: 119772
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
  widgetSelected(e);
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
  widgetSelected(e);
}
Program: 119773
Project: 119773
Buggy source:
public void creatTosVersionFilter(Composite parent,boolean isInitTosVersion){
  Composite tosVersionFilterComposite=new Composite(parent,SWT.NONE);
  tosVersionFilterComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  tosVersionFilterComposite.setLayout(new GridLayout(2,false));
  Label versionFilterLable=new Label(tosVersionFilterComposite,SWT.NONE);
  versionFilterLable.setText("String_Node_Str");
  GridData gridData=new GridData(SWT.Resize);
  gridData.widthHint=60;
  versionCombo=new Combo(tosVersionFilterComposite,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.RESIZE);
  versionCombo.setLayoutData(gridData);
  if (isInitTosVersion) {
    initTosVersionFilter();
  }
  versionCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
    public void widgetSelected(    SelectionEvent e){
      Combo comboControl=(Combo)e.getSource();
      String value=comboControl.getText();
      IPreferenceStore preferenceStore=ExchangePlugin.getDefault().getPreferenceStore();
      preferenceStore.setValue("String_Node_Str",value);
      version=value;
      progressBarMessage=Messages.getString("String_Node_Str");
      findChoiceExchange();
    }
  }
);
}

Fixed version (ground truth):
public void creatTosVersionFilter(Composite parent,boolean isInitTosVersion){
  Composite tosVersionFilterComposite=new Composite(parent,SWT.NONE);
  tosVersionFilterComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  tosVersionFilterComposite.setLayout(new GridLayout(2,false));
  Label versionFilterLable=new Label(tosVersionFilterComposite,SWT.NONE);
  versionFilterLable.setText("String_Node_Str");
  GridData gridData=new GridData(SWT.Resize);
  gridData.widthHint=60;
  versionCombo=new Combo(tosVersionFilterComposite,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.RESIZE);
  versionCombo.setLayoutData(gridData);
  if (isInitTosVersion) {
    initTosVersionFilter();
  }
  versionCombo.addSelectionListener(new SelectionListener(){
    @Override public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
    @Override public void widgetSelected(    SelectionEvent e){
      Combo comboControl=(Combo)e.getSource();
      String value=comboControl.getText();
      IPreferenceStore preferenceStore=ExchangePlugin.getDefault().getPreferenceStore();
      preferenceStore.setValue("String_Node_Str",value);
      version=value;
      progressBarMessage=Messages.getString("String_Node_Str");
      findChoiceExchange();
    }
  }
);
}
Program: 119774
Project: 119774
Buggy source:
protected void createButtonsForButtonBar(Composite parent){
  createButton(parent,IDialogConstants.OK_ID,IDialogConstants.FINISH_LABEL,true);
  createButton(parent,IDialogConstants.CANCEL_ID,IDialogConstants.CANCEL_LABEL,false);
}

Fixed version (ground truth):
@Override protected void createButtonsForButtonBar(Composite parent){
  createButton(parent,IDialogConstants.OK_ID,IDialogConstants.FINISH_LABEL,true);
  createButton(parent,IDialogConstants.CANCEL_ID,IDialogConstants.CANCEL_LABEL,false);
}
Program: 119775
Project: 119775
Buggy source:
protected ImportExchangeDialog(Shell shell){
  super(shell);
  this.setShellStyle(this.getShellStyle() | SWT.MIN | SWT.MAX| SWT.RESIZE);
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      fCategorys.clear();
      fCategorys=ExchangeWebService.searchCategoryExtensionJSONArray(ExchangeUtils.TYPEEXTENSION);
      fVersionRevisions.clear();
      fVersionRevisions=ExchangeWebService.searchVersionRevisionJSONArray(ExchangeUtils.TYPEEXTENSION);
    }
  }
);
}

Fixed version (ground truth):
protected ImportExchangeDialog(Shell shell){
  super(shell);
  this.setShellStyle(this.getShellStyle() | SWT.MIN | SWT.MAX| SWT.RESIZE);
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      fCategorys.clear();
      fCategorys=ExchangeWebService.searchCategoryExtensionJSONArray(ExchangeUtils.TYPEEXTENSION);
      fVersionRevisions.clear();
      fVersionRevisions=ExchangeWebService.searchVersionRevisionJSONArray(ExchangeUtils.TYPEEXTENSION);
    }
  }
);
}
Program: 119776
Project: 119776
Buggy source:
public void creatCategory(Composite parent){
  Composite categoryComposite=new Composite(parent,SWT.NONE);
  categoryComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  categoryComposite.setLayout(new GridLayout(2,false));
  Label categoryLabel=new Label(categoryComposite,SWT.NONE);
  categoryLabel.setText("String_Node_Str");
  GridData gridData=new GridData(SWT.Resize);
  gridData.widthHint=160;
  categoryCombo=new Combo(categoryComposite,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.RESIZE);
  categoryCombo.setLayoutData(gridData);
  initCategoryCombo();
  categoryCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
    public void widgetSelected(    SelectionEvent e){
      progressBarMessage=Messages.getString("String_Node_Str");
      findChoiceExchange();
    }
  }
);
}

Fixed version (ground truth):
public void creatCategory(Composite parent){
  Composite categoryComposite=new Composite(parent,SWT.NONE);
  categoryComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  categoryComposite.setLayout(new GridLayout(2,false));
  Label categoryLabel=new Label(categoryComposite,SWT.NONE);
  categoryLabel.setText("String_Node_Str");
  GridData gridData=new GridData(SWT.Resize);
  gridData.widthHint=160;
  categoryCombo=new Combo(categoryComposite,SWT.DROP_DOWN | SWT.READ_ONLY | SWT.RESIZE);
  categoryCombo.setLayoutData(gridData);
  initCategoryCombo();
  categoryCombo.addSelectionListener(new SelectionListener(){
    @Override public void widgetDefaultSelected(    SelectionEvent e){
      widgetSelected(e);
    }
    @Override public void widgetSelected(    SelectionEvent e){
      progressBarMessage=Messages.getString("String_Node_Str");
      findChoiceExchange();
    }
  }
);
}
Program: 119777
Project: 119777
Buggy source:
protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setText(Messages.getString("String_Node_Str"));
}

Fixed version (ground truth):
@Override protected void configureShell(Shell newShell){
  super.configureShell(newShell);
  newShell.setText(Messages.getString("String_Node_Str"));
}
Program: 119778
Project: 119778
Buggy source:
/** 
 * This is a progressBar.when this progressBar run it will download some jobs/templates/routines from net.
 */
public void findChoiceExchange(){
  ProgressMonitorDialog progressDialog=new ProgressMonitorDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell().getShell());
  IRunnableWithProgress runnable=new IRunnableWithProgress(){
    public void run(    IProgressMonitor monitor){
      monitor.beginTask(progressBarMessage,IProgressMonitor.UNKNOWN);
      Display.getDefault().syncExec(new Runnable(){
        public void run(){
          compatible=ComponentSearcher.getImportComponentExtensions(version,ExchangeUtils.getCurrentLanguage(),categoryCombo.getSelectionIndex() >= 0 ? fCategorys.get(categoryCombo.getSelectionIndex()).getCategoryId() : "String_Node_Str");
          updateTable(compatible);
        }
      }
);
      monitor.done();
      if (monitor.isCanceled()) {
        try {
          throw new InterruptedException(Messages.getString("String_Node_Str"));
        }
 catch (        InterruptedException e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
;
  try {
    progressDialog.run(true,true,runnable);
  }
 catch (  InvocationTargetException e1) {
    ExceptionHandler.process(e1);
  }
catch (  InterruptedException e1) {
    ExceptionHandler.process(e1);
  }
}

Fixed version (ground truth):
/** 
 * This is a progressBar.when this progressBar run it will download some jobs/templates/routines from net.
 */
public void findChoiceExchange(){
  ProgressMonitorDialog progressDialog=new ProgressMonitorDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell().getShell());
  IRunnableWithProgress runnable=new IRunnableWithProgress(){
    @Override public void run(    IProgressMonitor monitor){
      monitor.beginTask(progressBarMessage,IProgressMonitor.UNKNOWN);
      Display.getDefault().syncExec(new Runnable(){
        @Override public void run(){
          compatible=ComponentSearcher.getImportComponentExtensions(version,ExchangeUtils.getCurrentLanguage(),categoryCombo.getSelectionIndex() >= 0 ? fCategorys.get(categoryCombo.getSelectionIndex()).getCategoryId() : "String_Node_Str");
          updateTable(compatible);
        }
      }
);
      monitor.done();
      if (monitor.isCanceled()) {
        try {
          throw new InterruptedException(Messages.getString("String_Node_Str"));
        }
 catch (        InterruptedException e) {
          ExceptionHandler.process(e);
        }
      }
    }
  }
;
  try {
    progressDialog.run(true,true,runnable);
  }
 catch (  InvocationTargetException e1) {
    ExceptionHandler.process(e1);
  }
catch (  InterruptedException e1) {
    ExceptionHandler.process(e1);
  }
}