formatConstraintDescription
public static java.lang.String formatConstraintDescription(java.lang.String constraintId,
java.util.List styles)
Formats the description of the specified constraint
and returns it. The list of styles
is populated with the StyleRange
s implementing the bold-text highlights parsed from the description
pattern.
- Parameters:
constraint
- the constraint whose description is to be formattedselectedCategory
- the currently selected category. This is used to determine which categories other than the current
selection the constraint
belongs tostyles
- collects the style information to be passed to the text widget
- Returns:
- the description text, formatted according to the pattern in the localized resource file