Program: 118382
Project: 118382
Buggy source:
/** 
 * DOC ggu Comment method "setPartName". set title
 */
public void setPartName(String typeTitle,Image icon){
  String title=null;
  String type=null;
  if (typeTitle != null && typeTitle.contains(SEPARATOR)) {
    String[] tt=typeTitle.split(SEPARATOR);
    type=tt[0];
    title=tt[1];
  }
 else {
    title=typeTitle;
  }
  String viewName=getViewNameLable();
  if (element instanceof IProcess && AbstractProcessProvider.isExtensionProcessForJoblet((IProcess)element)) {
    viewName=VIEW_NAME_JOBLET;
  }
  if (type != null) {
    viewName=type;
  }
  if (title == null) {
    title="String_Node_Str";
  }
  if (!title.equals("String_Node_Str")) {
    viewName=viewName + "String_Node_Str" + title+ "String_Node_Str";
    super.setTitleToolTip(title);
  }
  if (tabFactory != null && icon == null) {
    icon=ImageProvider.getImage(ECoreImage.PROCESS_ICON);
    if (this.element != null && this.element instanceof IProcess) {
      if (((IProcess2)this.element).disableRunJobView()) {
        icon=ImageProvider.getImage(ECoreImage.JOBLET_ICON);
      }
 else       if (ProcessUtils.isTestContainer(process)) {
        icon=ImageProvider.getImage(ECoreImage.TEST_CONTAINER);
      }
 else       if (ComponentCategory.CATEGORY_4_MAPREDUCE.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_MR_ICON_X16);
      }
 else       if (ComponentCategory.CATEGORY_4_SPARK.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_SPARK_ICON_X16);
      }
 else       if (ComponentCategory.CATEGORY_4_SPARKSTREAMING.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_SPARK_STREAMING_ICON_X16);
      }
 else       if (ComponentCategory.CATEGORY_4_STORM.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_STORM_ICON_X16);
      }
    }
  }
  tabFactory.setTitle(title,icon);
  super.setTitleImage(icon);
  super.setPartName(viewName);
}

Fixed version (ground truth):
/** 
 * DOC ggu Comment method "setPartName". set title
 */
public void setPartName(String typeTitle,Image icon){
  String title=null;
  String type=null;
  if (typeTitle != null && typeTitle.contains(SEPARATOR)) {
    String[] tt=typeTitle.split(SEPARATOR);
    type=tt[0];
    title=tt[1];
  }
 else {
    title=typeTitle;
  }
  String viewName=getViewNameLable();
  if (element instanceof IProcess && AbstractProcessProvider.isExtensionProcessForJoblet((IProcess)element)) {
    viewName=VIEW_NAME_JOBLET;
  }
  if (type != null) {
    viewName=type;
  }
  if (title == null) {
    title="String_Node_Str";
  }
  if (!title.equals("String_Node_Str")) {
    viewName=viewName + "String_Node_Str" + title+ "String_Node_Str";
    super.setTitleToolTip(title);
  }
  if (tabFactory != null && icon == null) {
    icon=ImageProvider.getImage(ECoreImage.PROCESS_ICON);
    if (this.element != null && this.element instanceof IProcess) {
      if (((IProcess2)this.element).disableRunJobView()) {
        icon=ImageProvider.getImage(ECoreImage.JOBLET_ICON);
      }
 else       if (ProcessUtils.isTestContainer(process)) {
        icon=ImageProvider.getImage(ECoreImage.TEST_CONTAINER);
      }
 else       if (ComponentCategory.CATEGORY_4_MAPREDUCE.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_MR_ICON_X16);
      }
 else       if (ComponentCategory.CATEGORY_4_SPARK.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_SPARK_ICON_X16);
      }
 else       if (ComponentCategory.CATEGORY_4_SPARKSTREAMING.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_SPARK_STREAMING_ICON_X16);
      }
 else       if (ComponentCategory.CATEGORY_4_STORM.getName().equals(process.getComponentsType())) {
        icon=ImageProvider.getImage(EJobSettingImage.PROCESS_STORM_ICON_X16);
      }
    }
  }
  tabFactory.setTitle(title,icon);
  super.setTitleImage(icon);
  if (gitService.isProjectInGitMode())   return;
  super.setPartName(viewName);
}