Program: 127979
Project: 127979
Buggy source:
/** 
 * Adding the page to the wizard.
 */
@Override public void addPages(){
  if (isToolbar) {
    pathToSave=null;
  }
  propertiesWizardPage=new Step0WizardPage(connectionProperty,pathToSave,ERepositoryObjectType.METADATA_FILE_XML,!isRepositoryObjectEditable(),creation);
  xmlFileSelectPage=new XmlFileSelectWizardPage(creation,connectionItem,isRepositoryObjectEditable(),existingNames);
  setDefaultPageImageDescriptor(ImageProvider.getImageDesc(ECoreImage.METADATA_FILE_XML_WIZ));
  if (connection != null) {
    List schemas=connection.getSchema();
    if (!schemas.isEmpty()) {
      XmlXPathLoopDescriptor currentSchema=(XmlXPathLoopDescriptor)schemas.get(0);
      oldAbstractQueryPath=currentSchema.getAbsoluteXPathQuery();
    }
  }
  if (creation) {
    setWindowTitle(Messages.getString("String_Node_Str"));
    propertiesWizardPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    propertiesWizardPage.setDescription(Messages.getString("String_Node_Str"));
    addPage(propertiesWizardPage);
    propertiesWizardPage.setPageComplete(false);
    xmlFileSelectPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    xmlFileSelectPage.setDescription("String_Node_Str");
    addPage(xmlFileSelectPage);
    xmlFileSelectPage.setPageComplete(true);
  }
 else {
    setWindowTitle(Messages.getString("String_Node_Str"));
    propertiesWizardPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    propertiesWizardPage.setDescription(Messages.getString("String_Node_Str"));
    addPage(propertiesWizardPage);
    xmlFileSelectPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    xmlFileSelectPage.setDescription("String_Node_Str");
    addPage(xmlFileSelectPage);
    xmlFileSelectPage.setPageComplete(true);
  }
}

Fixed version (ground truth):
/** 
 * Adding the page to the wizard.
 */
@Override public void addPages(){
  if (isToolbar) {
    pathToSave=null;
  }
  propertiesWizardPage=new Step0WizardPage(connectionProperty,pathToSave,ERepositoryObjectType.METADATA_FILE_XML,!isRepositoryObjectEditable(),creation);
  xmlFileSelectPage=new XmlFileSelectWizardPage(creation,connectionItem,isRepositoryObjectEditable(),existingNames);
  setDefaultPageImageDescriptor(ImageProvider.getImageDesc(ECoreImage.METADATA_FILE_XML_WIZ));
  if (connection != null) {
    List schemas=connection.getSchema();
    if (!schemas.isEmpty()) {
      XmlXPathLoopDescriptor currentSchema=(XmlXPathLoopDescriptor)schemas.get(0);
      oldAbstractQueryPath=currentSchema.getAbsoluteXPathQuery();
    }
  }
  if (creation) {
    setWindowTitle(Messages.getString("String_Node_Str"));
    propertiesWizardPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    propertiesWizardPage.setDescription(Messages.getString("String_Node_Str"));
    addPage(propertiesWizardPage);
    propertiesWizardPage.setPageComplete(false);
    xmlFileSelectPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    xmlFileSelectPage.setDescription("String_Node_Str");
    addPage(xmlFileSelectPage);
    xmlFileSelectPage.setPageComplete(true);
  }
 else {
    setWindowTitle(Messages.getString("String_Node_Str"));
    propertiesWizardPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    propertiesWizardPage.setDescription(Messages.getString("String_Node_Str"));
    addPage(propertiesWizardPage);
    xmlFileSelectPage.setTitle(Messages.getString("String_Node_Str") + "String_Node_Str" + Messages.getString("String_Node_Str")+ "String_Node_Str");
    xmlFileSelectPage.setDescription("String_Node_Str");
    addPage(xmlFileSelectPage);
    xmlFileSelectPage.setPageComplete(true);
    if (!isRepositoryObjectEditable()) {
      creation=true;
    }
  }
}