Program: 147672
Project: 147672
Buggy source:
public void doubleClick(DoubleClickEvent event){
  IStructuredSelection selection=((IStructuredSelection)viewer.getSelection());
  if (selection.isEmpty()) {
    return;
  }
  int elem=getElementType(selection.getFirstElement());
  java.util.List<IAvailableModel> availablemodels=AvailableModelUtil.getAvailableModels(isLocalInput());
  for (  IAvailableModel model : availablemodels) {
    model.doubleClickOnElement(elem,DataModelMainPage.this,dataModelName);
  }
switch (elem) {
case 0:
    editConceptAction.run();
  break;
case 1:
editElementAction.run();
break;
case 2:
editComplexTypeAction.run();
break;
case 3:
editIdentityConstraintAction.run();
break;
case 4:
editXPathAction.run();
break;
case 5:
changeBaseTypeAction.run();
break;
case 6:
setAnnotationDescriptionsAction.run();
break;
case 7:
editParticleAction.run();
break;
case 8:
changeSubElementGroupAction.run();
break;
case 201:
initxsdEditFacetAction("String_Node_Str");
break;
case 202:
initxsdEditFacetAction("String_Node_Str");
break;
case 203:
initxsdEditFacetAction("String_Node_Str");
break;
case 204:
initxsdEditFacetAction("String_Node_Str");
break;
case 205:
initxsdEditFacetAction("String_Node_Str");
break;
case 206:
initxsdEditFacetAction("String_Node_Str");
break;
case 207:
initxsdEditFacetAction("String_Node_Str");
break;
case 208:
initxsdEditFacetAction("String_Node_Str");
break;
case 209:
initxsdEditFacetAction("String_Node_Str");
break;
case 210:
initxsdEditFacetAction("String_Node_Str");
break;
case 211:
initxsdEditFacetAction("String_Node_Str");
break;
case 212:
initxsdEditFacetAction("String_Node_Str");
break;
case 101:
setAnnotationLabelAction.run();
break;
case 102:
setAnnotationForeignKeyAction.run();
break;
case 103:
setAnnotationForeignKeyInfoAction.run();
break;
case 112:
setAnnotationFKFilterAction.run();
break;
case 104:
break;
case 105:
break;
case 106:
setAnnotationDescriptionsAction.run();
break;
case 110:
setFacetMsgAction.run();
break;
case 113:
setAnnotationDisplayFomatAction.run();
break;
case 114:
setAnnotationLookupFieldsAction.run();
break;
case 115:
setAnnotationPrimaryKeyInfoAction.run();
break;
case 107:
case 108:
case 116:
case 117:
if (exAdapter != null) {
exAdapter.doubleClick(elem);
}
case 121:
setAnnotationFKIntegrity.run();
break;
case 122:
setAnnotationFKIntegrityOverride.run();
break;
case -1:
if (drillDownAdapter.canGoInto() == true) {
drillDownAdapter.goInto();
}
}
}

Fixed version (ground truth):
public void doubleClick(DoubleClickEvent event){
  IStructuredSelection selection=((IStructuredSelection)viewer.getSelection());
  if (selection.isEmpty()) {
    return;
  }
  int elem=getElementType(selection.getFirstElement());
  java.util.List<IAvailableModel> availablemodels=AvailableModelUtil.getAvailableModels(isLocalInput());
  for (  IAvailableModel model : availablemodels) {
    model.doubleClickOnElement(elem,DataModelMainPage.this,dataModelName);
  }
switch (elem) {
case 0:
    editConceptAction.run();
  break;
case 1:
editElementAction.run();
break;
case 2:
editComplexTypeAction.run();
break;
case 3:
editIdentityConstraintAction.run();
break;
case 4:
editXPathAction.run();
break;
case 5:
changeBaseTypeAction.run();
break;
case 6:
setAnnotationDescriptionsAction.run();
break;
case 7:
editParticleAction.run();
break;
case 8:
changeSubElementGroupAction.run();
break;
case 201:
initxsdEditFacetAction("String_Node_Str");
break;
case 202:
initxsdEditFacetAction("String_Node_Str");
break;
case 203:
initxsdEditFacetAction("String_Node_Str");
break;
case 204:
initxsdEditFacetAction("String_Node_Str");
break;
case 205:
initxsdEditFacetAction("String_Node_Str");
break;
case 206:
initxsdEditFacetAction("String_Node_Str");
break;
case 207:
initxsdEditFacetAction("String_Node_Str");
break;
case 208:
initxsdEditFacetAction("String_Node_Str");
break;
case 209:
initxsdEditFacetAction("String_Node_Str");
break;
case 210:
initxsdEditFacetAction("String_Node_Str");
break;
case 211:
initxsdEditFacetAction("String_Node_Str");
break;
case 212:
initxsdEditFacetAction("String_Node_Str");
break;
case 101:
setAnnotationLabelAction.run();
break;
case 102:
setAnnotationForeignKeyAction.run();
break;
case 103:
setAnnotationForeignKeyInfoAction.run();
break;
case 112:
setAnnotationFKFilterAction.run();
break;
case 104:
break;
case 105:
break;
case 106:
setAnnotationDescriptionsAction.run();
break;
case 110:
setFacetMsgAction.run();
break;
case 113:
setAnnotationDisplayFomatAction.run();
break;
case 114:
setAnnotationLookupFieldsAction.run();
break;
case 115:
setAnnotationPrimaryKeyInfoAction.run();
break;
case 107:
case 108:
case 116:
case 117:
if (exAdapter != null) {
exAdapter.doubleClick(elem);
}
break;
case 121:
setAnnotationFKIntegrity.run();
break;
case 122:
setAnnotationFKIntegrityOverride.run();
break;
case -1:
if (drillDownAdapter.canGoInto() == true) {
drillDownAdapter.goInto();
}
}
}