boolean queryOverwriteFile(IFile targetFile,int policy){
  if (policy != POLICY_FORCE_OVERWRITE) {
    if (this.overwriteState == OVERWRITE_NOT_SET && !queryOverwrite(targetFile.getFullPath())) {
      return false;
    }
    if (this.overwriteState == OVERWRITE_NONE) {
      return false;
    }
  }
  return true;
}

boolean queryOverwriteFile ( IFile targetFile , int policy ) { if ( policy != POLICY_FORCE_OVERWRITE ) { if ( this . overwriteState == OVERWRITE_NOT_SET && ! queryOverwrite ( targetFile . getFullPath ( ) ) ) { return false ; } if ( this . overwriteState == OVERWRITE_NONE ) { return false ; } } return true ; }
returns whether the given file should be overwritten .
