public List getOptions()

in src/com/intellij/vssSupport/CheckoutOptions.java [78:122]


  public List<String> getOptions( VirtualFile file )
  {
    ArrayList<String> options= new ArrayList<>();
    options.add(CHECKOUT_COMMAND);
    options.add(VssUtil.getVssPath(file, myConfig.getProject()));
    // Comments
    if(COMMENT.length()!=0){
      options.add(StringUtil.escapeQuotes(_C_OPTION +COMMENT+""));
    }else{
      options.add(_C__OPTION);
    }

    // "Don't get local copy"
    if( DO_NOT_GET_LATEST_VERSION )
      options.add( _G__OPTION );
    else
    if( REPLACE_WRITABLE )
      options.add( _GWR_OPTION );

    if( file.isDirectory() )
    {
      //  If "Recursive" option is not set this does not mean that we should
      //  simply omit it. If the "Act on projects recursively" option is set
      //  in the SS Explorer, then all commands to the [sub]projects are
      //  applied in the recursive manner by default.
      if( RECURSIVE )
        options.add( _R_OPTION );
      else
        options.add( _R_NOT_OPTION );
    }

    //  Answer "Yes" on all appeared questions.
    //  Questions may arrise if:
    //  1. "File is already checked out" message - it is issued when the file
    //     is already on the HD.
    //  1. "file is already checked out by another user" - this is possible
    //     when the option "Enable Multiple Checkouts" is turned on.
    options.add( _I_Y_OPTION );
    
    // User name/password (if specified)
    if(myConfig.USER_NAME.length()>0){
      options.add(myConfig.getYOption());
    }
    return options;
  }