Пример #1
0
 /**
  * Called when a new directory has to be added.
  *
  * <p>For each 'addDir' call server will call 'closeDir' method after all children of the added
  * directory are added.
  *
  * <p>This implementation creates corresponding directory below root directory.
  */
 public void addDir(String path, String copyFromPath, long copyFromRevision) throws SVNException {
   File newDir = new File(myRootDirectory, path);
   if (!newDir.exists()) {
     if (!newDir.mkdirs()) {
       SVNErrorMessage err =
           SVNErrorMessage.create(
               SVNErrorCode.IO_ERROR, "error: failed to add the directory ''{0}''.", newDir);
       throw new SVNException(err);
     }
   }
   Log.L.fine("dir added: " + path);
 }
  public ExceptionDialog(
      final int flag,
      final String title,
      final String message,
      final Throwable exception,
      final String okOption,
      final String cancelOption) {
    super(flag, title, null, okOption, cancelOption);
    Log.L.fine(
        "Dialog    ["
            + okOption
            + "]["
            + cancelOption
            + "]\r\nflag:  "
            + Integer.toBinaryString(flag)
            + "\r\ntitle: "
            + title
            + "\r\nmsg:   \r\n"
            + message);

    this.message = message;
    this.exception = exception;
  }