Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public class LineNumberFactory implements IntFunction<Node> {
private static final Background DEFAULT_BACKGROUND =
new Background(new BackgroundFill(Color.web("#ddd"), null, null));

public static IntFunction<Node> get(StyledTextArea<?, ?> area) {
public static IntFunction<Node> get(GenericStyledArea<?, ?, ?> area) {
return get(area, digits -> "%0" + digits + "d");
}

public static IntFunction<Node> get(
StyledTextArea<?, ?> area,
GenericStyledArea<?, ?, ?> area,
IntFunction<String> format) {
return new LineNumberFactory(area, format);
}
Expand All @@ -42,7 +42,7 @@ public static IntFunction<Node> get(
private final IntFunction<String> format;

private LineNumberFactory(
StyledTextArea<?, ?> area,
GenericStyledArea<?, ?, ?> area,
IntFunction<String> format) {
nParagraphs = LiveList.sizeOf(area.getParagraphs());
this.format = format;
Expand Down