Program: 129905
Project: 129905
Buggy source:
@Override public void setVisible(boolean visible){
  super.setVisible(visible);
  if (visible) {
    if (this.linker != null) {
      this.linker.removeAllLinks();
    }
    if (concept.getXPathPrefix() == null || "String_Node_Str".equals(concept.getXPathPrefix())) {
      xPathPrefixCombo.select(0);
    }
 else {
      final XPathPrefix xPathPrefix=getXPathPrefix(concept.getXPathPrefix());
      xPathPrefixCombo.setText(xPathPrefix.getDisplayName());
    }
    String selectedEntity=null;
    if (wizardPage != null && wizardPage.getPreviousPage() instanceof MdmConceptWizardPage2) {
      selectedEntity=((MdmConceptWizardPage2)wizardPage.getPreviousPage()).getSelectedEntity();
    }
    this.treePopulator.populateTree(xsdFilePath,treeNode,selectedEntity);
    ScrollBar verticalBar=availableXmlTree.getVerticalBar();
    if (verticalBar != null) {
      verticalBar.setSelection(0);
    }
    resetStatusIfNecessary(selectedEntity);
    if (this.linker == null) {
      this.linker=new MDMLinker(this.xmlToSchemaSash,isTemplateExist);
      this.linker.init(availableXmlTree,loopTableEditorView,fieldsTableEditorView,treePopulator);
      loopTableEditorView.setLinker(this.linker);
      fieldsTableEditorView.setLinker(this.linker);
    }
 else {
      this.linker.init(treePopulator);
      this.linker.createLinks();
    }
    checkFilePathAndManageIt();
    if (xsdFilePath != null && XmlUtil.isXSDFile(xsdFilePath)) {
      previewButton.setEnabled(false);
      previewButton.setText(Messages.getString("String_Node_Str"));
      previewButton.computeSize(SWT.DEFAULT,SWT.DEFAULT);
      previewButton.getParent().layout();
    }
    if (isContextMode()) {
      adaptFormToEditable();
    }
  }
}

Fixed version (ground truth):
@Override public void setVisible(boolean visible){
  super.setVisible(visible);
  if (visible) {
    if (this.linker != null) {
      this.linker.removeAllLinks();
    }
    if (concept.getXPathPrefix() == null || "String_Node_Str".equals(concept.getXPathPrefix())) {
      prefixCombo.select(1);
      concept.setXPathPrefix(XPathPrefix.NONE_ITEM.getPrefix());
    }
 else {
      prefixCombo.setText(getXPathPrefix(concept.getXPathPrefix()));
    }
    String selectedEntity=null;
    if (wizardPage != null && wizardPage.getPreviousPage() instanceof MdmConceptWizardPage2) {
      selectedEntity=((MdmConceptWizardPage2)wizardPage.getPreviousPage()).getSelectedEntity();
    }
    this.treePopulator.populateTree(xsdFilePath,treeNode,selectedEntity);
    ScrollBar verticalBar=availableXmlTree.getVerticalBar();
    if (verticalBar != null) {
      verticalBar.setSelection(0);
    }
    resetStatusIfNecessary(selectedEntity);
    if (this.linker == null) {
      this.linker=new MDMLinker(this.xmlToSchemaSash,isTemplateExist);
      this.linker.init(availableXmlTree,loopTableEditorView,fieldsTableEditorView,treePopulator);
      loopTableEditorView.setLinker(this.linker);
      fieldsTableEditorView.setLinker(this.linker);
    }
 else {
      this.linker.init(treePopulator);
      this.linker.createLinks();
    }
    checkFilePathAndManageIt();
    if (xsdFilePath != null && XmlUtil.isXSDFile(xsdFilePath)) {
      previewButton.setEnabled(false);
      previewButton.setText(Messages.getString("String_Node_Str"));
      previewButton.computeSize(SWT.DEFAULT,SWT.DEFAULT);
      previewButton.getParent().layout();
    }
    if (isContextMode()) {
      adaptFormToEditable();
    }
  }
}