Class DialogStrings

java.lang.Object
slash.navigation.gui.helpers.DialogStrings

public class DialogStrings extends Object
Formats a list of items into a localized, length-bounded string for user-facing dialog text, e.g. 'a',\n'b' and\n'c'. Unlike the uncapped log formatter, this caps the number of shown items with a localized "and N more" suffix so a long list can never grow a dialog past the screen, and shortens only actual file paths.
Author:
Christian Pesch
  • Constructor Details

    • DialogStrings

      public DialogStrings()
  • Method Details

    • asDialogString

      public static String asDialogString(List<?> items)
    • asDialogString

      public static String asDialogString(List<?> items, boolean shortenPaths)