code: public boolean showConfirmation() {
  
          boolean showConfirmation = getSettings().getUserSettings().getDialogShowLock();
          if (DIALOG_TYPE_LOCK.equals(getParamDialogtype())) {
              // in case of locking resources, check if there are locked sub resources in the selected folder(s)
              showConfirmation = showConfirmation || (getLockedResources().size() > 0);
          }
          return showConfirmation;
      }
docs: Determines whether to show the lock dialog depending on the users settings and the dilaog type.<p>
  
  In case of locking a folder, a confirmation dialog is needed if any sub resources are already locked.<p>
  
  @return true if dialogs should be shown, otherwise false