Program: 139958
Project: 139958
Buggy source:
public void selectionChanged(IWorkbenchPart part,ISelection selection){
  clearContainer();
  boolean is=true;
  if (part instanceof DQRespositoryView) {
    StructuredSelection sel=(StructuredSelection)selection;
    Object fe=sel.getFirstElement();
    if (fe instanceof IFile) {
      IFile fe2=(IFile)fe;
      is=createFileDetail(is,fe2);
    }
 else     if (fe instanceof TdCatalog) {
      TdCatalog catalog=(TdCatalog)fe;
      createTdCatalogDetail(catalog);
      is=false;
    }
 else     if (fe instanceof TdSchema) {
      TdSchema schema=(TdSchema)fe;
      createTdSchemaDetail(schema);
      is=false;
    }
 else     if (fe instanceof TdTable) {
      ModelElement element=(ModelElement)fe;
      createTableDetail((Table)element);
      is=false;
    }
 else     if (fe instanceof TdView) {
      ModelElement element=(ModelElement)fe;
      createNameCommentDetail(element);
      is=false;
    }
 else     if (fe instanceof TdColumn) {
      TdColumn column=(TdColumn)fe;
      createTdColumn(column);
      is=false;
    }
    if (switchFlag) {
      if (fe instanceof EObject) {
        createTechnicalDetail((EObject)fe);
      }
 else       if (fe instanceof IFile) {
        createTechnicalDetail((IFile)fe);
      }
 else {
        createExtDefault();
      }
    }
  }
 else   if (part instanceof CommonFormEditor) {
    CommonFormEditor editor=(CommonFormEditor)part;
    IEditorInput editorInput=editor.getEditorInput();
    if (editorInput instanceof IFileEditorInput) {
      IFileEditorInput input=(IFileEditorInput)editorInput;
      IFile file=input.getFile();
      is=createFileDetail(is,file);
    }
  }
  if (is) {
    createDefault();
  }
  gContainer.layout();
  if (tContainer != null) {
    tContainer.layout();
  }
}

Fixed version (ground truth):
public void selectionChanged(IWorkbenchPart part,ISelection selection){
  clearContainer();
  boolean is=true;
  if (part instanceof DQRespositoryView) {
    StructuredSelection sel=(StructuredSelection)selection;
    Object fe=sel.getFirstElement();
    if (fe instanceof IFile) {
      IFile fe2=(IFile)fe;
      is=createFileDetail(is,fe2);
    }
 else     if (fe instanceof TdCatalog) {
      TdCatalog catalog=(TdCatalog)fe;
      createTdCatalogDetail(catalog);
      is=false;
    }
 else     if (fe instanceof TdSchema) {
      TdSchema schema=(TdSchema)fe;
      createTdSchemaDetail(schema);
      is=false;
    }
 else     if (fe instanceof TdTable) {
      ModelElement element=(ModelElement)fe;
      createTableDetail((Table)element);
      is=false;
    }
 else     if (fe instanceof TdView) {
      ModelElement element=(ModelElement)fe;
      createNameCommentDetail(element);
      is=false;
    }
 else     if (fe instanceof TdColumn) {
      TdColumn column=(TdColumn)fe;
      createTdColumn(column);
      is=false;
    }
 else     if (fe instanceof IEcosComponent) {
      IEcosComponent component=(IEcosComponent)fe;
      createEcosComponent(component);
      is=false;
    }
    if (PluginChecker.isTDQLoaded()) {
      if (fe instanceof EObject) {
        createTechnicalDetail((EObject)fe);
      }
 else       if (fe instanceof IFile) {
        createTechnicalDetail((IFile)fe);
      }
 else {
        createExtDefault();
      }
    }
  }
 else   if (part instanceof CommonFormEditor) {
    CommonFormEditor editor=(CommonFormEditor)part;
    IEditorInput editorInput=editor.getEditorInput();
    if (editorInput instanceof IFileEditorInput) {
      IFileEditorInput input=(IFileEditorInput)editorInput;
      IFile file=input.getFile();
      is=createFileDetail(is,file);
    }
  }
  if (is) {
    createDefault();
  }
  gContainer.layout();
  if (tContainer != null) {
    tContainer.layout();
  }
}