Program: 129640
Project: 129640
Buggy source:
/** 
 * This method determine if the 'Finish' button is enable This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.
 */
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  formIsPerformed=true;
  connectionItem.setConnection((SalesforceSchemaConnection)EcoreUtil.copy(temConnection));
  if (formIsPerformed) {
    IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    try {
      if (creation) {
        factory.create(connectionItem,new Path("String_Node_Str"));
      }
 else {
        RepositoryUpdateManager.updateFileConnection(connectionItem);
        factory.save(connectionItem);
        closeLockStrategy();
      }
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    PersistenceException e) {
      String detailError=e.toString();
      new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),detailError);
      log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
      return false;
    }
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
/** 
 * This method determine if the 'Finish' button is enable This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.
 */
@Override public boolean performFinish(){
  boolean formIsPerformed=false;
  formIsPerformed=true;
  connectionItem.setConnection((SalesforceSchemaConnection)EcoreUtil.copy(temConnection));
  if (formIsPerformed) {
    RepositoryUpdateManager.updateFileConnection(connectionItem);
    final IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
    final IWorkspaceRunnable op=new IWorkspaceRunnable(){
      public void run(      IProgressMonitor monitor) throws CoreException {
        try {
          factory.save(connectionItem);
          closeLockStrategy();
          ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
        }
 catch (        Exception e) {
          String detailError=e.toString();
          log.error(Messages.getString("String_Node_Str") + "String_Node_Str" + detailError);
        }
      }
    }
;
    IRunnableWithProgress iRunnableWithProgress=new IRunnableWithProgress(){
      public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        IWorkspace workspace=ResourcesPlugin.getWorkspace();
        try {
          ISchedulingRule schedulingRule=workspace.getRoot();
          workspace.run(op,schedulingRule,IWorkspace.AVOID_UPDATE,monitor);
        }
 catch (        CoreException e) {
          throw new InvocationTargetException(e);
        }
      }
    }
;
    try {
      new ProgressMonitorDialog(getShell()).run(true,false,iRunnableWithProgress);
    }
 catch (    InvocationTargetException e) {
    }
catch (    InterruptedException e) {
    }
    return true;
  }
 else {
    return false;
  }
}