Skip to content

Make paragraph style arguments always precede text style arguments. #245

@TomasMikula

Description

@TomasMikula

Since paragraph style is applied on a higher level than text style, paragraph style arguments should precede text style arguments. We should make this consistent throughout the code base. This applies to both type parameters and constructor/method parameters. We have had this wrong in most places since the very introduction of paragraph-level styles. Affected classes include StyledTextArea and its subclasses and super-interfaces, StyledTextAreaModel, StyledDocument and its subclasses, Paragraph.

For example,

StyledTextArea<S, PS>

should be changed to

StyledTextArea<PS, S>

and the constructor

StyledTextArea(
        initialStyle, applyStyle,
        initialParagraphStyle, applyParagraphStyle
)

should be changed to

StyledTextArea(
        initialParagraphStyle, applyParagraphStyle,
        initialStyle, applyStyle
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions