Program: 127665
Project: 127665
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) {
    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;
  }
}

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) {
    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;
  }
}