Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4221430

AbstractDocument UndoRedo presentation names are always in English

XMLWordPrintable



      Name: krT82822 Date: 03/17/99


      The undo/redo presentation names have problems:
      1. Assuming all languages have the same order for the action -- Undo/Redo addition/deletion.
         This is in the code AbstractUndoableEdit.java
          public String getUndoPresentationName() {
      String name = getPresentationName();
      if (name != "") {
      name = UndoName + " " + name;
      } else {
      name = UndoName;
      }

      return name;
          }

      2. The presentation names are always in English.
         This is found in AbstractDocument.java
      public String getPresentationName() {
      DocumentEvent.EventType type = getType();
      if(type == DocumentEvent.EventType.INSERT)
      return "addition";
      if(type == DocumentEvent.EventType.REMOVE)
      return "deletion";
      return "style change";
      }
      public String getUndoPresentationName() {
      return "Undo " + getPresentationName();
      }
      (Review ID: 55714)
      ======================================================================

            apikalev Andrey Pikalev
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: