Package slash.navigation.gui.helpers
Class DialogStrings
java.lang.Object
slash.navigation.gui.helpers.DialogStrings
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringasDialogString(List<?> items) static StringasDialogString(List<?> items, boolean shortenPaths)
-
Constructor Details
-
DialogStrings
public DialogStrings()
-
-
Method Details
-
asDialogString
-
asDialogString
-