Program: 140536
Project: 140536
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;
      if (fe2.getFileExtension().equals(FactoriesUtil.PROV)) {
        TypedReturnCode<TdDataProvider> tdProvider=PrvResourceFileHelper.getInstance().getTdProvider(fe2);
        TdDataProvider dataProvider=tdProvider.getObject();
        createDataProviderDetail(dataProvider);
        is=false;
      }
 else       if (fe2.getFileExtension().equals(FactoriesUtil.PATTERN)) {
        Pattern pattern=PatternResourceFileHelper.getInstance().findPattern(fe2);
        createPatternDetail(pattern);
        is=false;
      }
 else       if (fe2.getFileExtension().equals(FactoriesUtil.ANA)) {
        Analysis ana=AnaResourceFileHelper.getInstance().findAnalysis(fe2);
        createAnaysisDetail(ana);
        is=false;
      }
 else       if (fe2.getFileExtension().equals(FactoriesUtil.REP)) {
        TdReport rep=RepResourceFileHelper.getInstance().findReport(fe2);
        createReportDetail(rep);
        is=false;
      }
 else       if (fe2.getFileExtension().equals(FactoriesUtil.SQL)) {
        createSqlFileDetail(fe2);
        is=false;
      }
    }
 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) || fe instanceof TdView) {
      ModelElement element=(ModelElement)fe;
      createTdTVDetail(element);
      is=false;
    }
 else     if (fe instanceof TdColumn) {
      TdColumn column=(TdColumn)fe;
      createTdColumn(column);
      is=false;
    }
  }
  if (is) {
    createDefault();
  }
  container.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) || fe instanceof TdView) {
      ModelElement element=(ModelElement)fe;
      createTdTVDetail(element);
      is=false;
    }
 else     if (fe instanceof TdColumn) {
      TdColumn column=(TdColumn)fe;
      createTdColumn(column);
      is=false;
    }
  }
 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();
  }
  container.layout();
}