Program: 123804
Project: 123804
Buggy source:
protected void restoreWidgetValuesForWS(){
  IDialogSettings settings=getDialogSettings();
  if (settings != null) {
    String[] directoryNames=settings.getArray(STORE_DESTINATION_NAMES_ID);
    if (directoryNames != null && directoryNames.length > 0) {
      String fileName=getDefaultFileNameWithType();
      for (int i=0; i < directoryNames.length; i++) {
        String destination=new Path(directoryNames[i]).append(fileName).toOSString();
        addDestinationItem(destination);
        setDestinationValue(destination);
      }
    }
 else {
      setDefaultDestination();
    }
    webXMLButton.setSelection(settings.getBoolean(STORE_WEBXML_ID));
    configFileButton.setSelection(settings.getBoolean(STORE_CONFIGFILE_ID));
    axisLibButton.setSelection(settings.getBoolean(STORE_AXISLIB_ID));
    wsddButton.setSelection(settings.getBoolean(STORE_WSDD_ID));
    wsdlButton.setSelection(settings.getBoolean(STORE_WSDL_ID));
    jobScriptButton.setSelection(settings.getBoolean(STORE_SOURCE_ID));
    contextButton.setSelection(settings.getBoolean(STORE_CONTEXT_ID));
    applyToChildrenButton.setSelection(settings.getBoolean(APPLY_TO_CHILDREN_ID));
    chkButton.setSelection(settings.getBoolean(EXTRACT_ZIP_FILE));
    if (chkButton.isVisible()) {
      zipOption=String.valueOf(chkButton.getSelection());
    }
 else {
      zipOption="String_Node_Str";
    }
  }
  if (getProcessItem() != null && contextCombo != null) {
    try {
      setProcessItem((ProcessItem)ProxyRepositoryFactory.getInstance().getUptodateProperty(getProcessItem().getProperty()).getItem());
    }
 catch (    PersistenceException e) {
      e.printStackTrace();
    }
    List<String> contextNames=getJobContexts(getProcessItem());
    contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));
    if (contextNames.size() > 0) {
      contextCombo.select(0);
    }
  }
}

Fixed version (ground truth):
protected void restoreWidgetValuesForWS(){
  IDialogSettings settings=getDialogSettings();
  if (settings != null) {
    String[] directoryNames=settings.getArray(STORE_DESTINATION_NAMES_ID);
    if (directoryNames != null && directoryNames.length > 0) {
      String fileName=getDefaultFileNameWithType();
      for (int i=0; i < directoryNames.length; i++) {
        if (directoryNames[i].toLowerCase().endsWith("String_Node_Str") || directoryNames[i].toLowerCase().endsWith("String_Node_Str")) {
          directoryNames[i]=(directoryNames[i].charAt(0) + "String_Node_Str").toUpperCase() + directoryNames[i].substring(1);
          addDestinationItem(directoryNames[i]);
        }
        setDestinationValue(directoryNames[0].substring(0,(directoryNames[0].lastIndexOf("String_Node_Str") + 1)) + fileName);
      }
    }
 else {
      setDefaultDestination();
    }
    webXMLButton.setSelection(settings.getBoolean(STORE_WEBXML_ID));
    configFileButton.setSelection(settings.getBoolean(STORE_CONFIGFILE_ID));
    axisLibButton.setSelection(settings.getBoolean(STORE_AXISLIB_ID));
    wsddButton.setSelection(settings.getBoolean(STORE_WSDD_ID));
    wsdlButton.setSelection(settings.getBoolean(STORE_WSDL_ID));
    jobScriptButton.setSelection(settings.getBoolean(STORE_SOURCE_ID));
    contextButton.setSelection(settings.getBoolean(STORE_CONTEXT_ID));
    applyToChildrenButton.setSelection(settings.getBoolean(APPLY_TO_CHILDREN_ID));
    chkButton.setSelection(settings.getBoolean(EXTRACT_ZIP_FILE));
    if (chkButton.isVisible()) {
      zipOption=String.valueOf(chkButton.getSelection());
    }
 else {
      zipOption="String_Node_Str";
    }
  }
  if (getProcessItem() != null && contextCombo != null) {
    try {
      setProcessItem((ProcessItem)ProxyRepositoryFactory.getInstance().getUptodateProperty(getProcessItem().getProperty()).getItem());
    }
 catch (    PersistenceException e) {
      e.printStackTrace();
    }
    List<String> contextNames=getJobContexts(getProcessItem());
    contextCombo.setItems(contextNames.toArray(new String[contextNames.size()]));
    if (contextNames.size() > 0) {
      contextCombo.select(0);
    }
  }
}