Skip to content

Commit 3b60b83

Browse files
committed
Make Eclipse type inference happy (again).
1 parent a9f7813 commit 3b60b83

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

richtextfx/src/main/java/org/fxmisc/richtext/StyledTextArea.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import static org.fxmisc.richtext.PopupAlignment.*;
44
import static org.fxmisc.richtext.TwoDimensional.Bias.*;
5-
import static org.reactfx.EventStreams.invalidationsOf;
6-
import static org.reactfx.EventStreams.merge;
7-
import static org.reactfx.EventStreams.valuesOf;
5+
import static org.reactfx.EventStreams.*;
86
import static org.reactfx.util.Tuples.*;
97

108
import java.time.Duration;
@@ -45,7 +43,6 @@
4543
import javafx.scene.layout.Region;
4644
import javafx.scene.paint.Color;
4745
import javafx.scene.paint.Paint;
48-
import javafx.scene.text.Font;
4946
import javafx.scene.text.Text;
5047
import javafx.scene.text.TextFlow;
5148
import javafx.stage.PopupWindow;
@@ -56,7 +53,6 @@
5653
import org.fxmisc.flowless.Virtualized;
5754
import org.fxmisc.flowless.VirtualizedScrollPane;
5855
import org.fxmisc.richtext.CssProperties.EditableProperty;
59-
import org.fxmisc.richtext.CssProperties.FontProperty;
6056
import org.fxmisc.undo.UndoManager;
6157
import org.fxmisc.undo.UndoManagerFactory;
6258
import org.reactfx.EventStream;
@@ -290,6 +286,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
290286
* Value is only accurate when area does not wrap lines and uses the same font size
291287
* throughout the entire area.
292288
*/
289+
@Override
293290
public Var<Double> estimatedScrollXProperty() { return virtualFlow.estimatedScrollXProperty(); }
294291
public double getEstimatedScrollX() { return virtualFlow.estimatedScrollXProperty().getValue(); }
295292
public void setEstimatedScrollX(double value) { virtualFlow.estimatedScrollXProperty().setValue(value); }
@@ -299,6 +296,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
299296
* Value is only accurate when area does not wrap lines and uses the same font size
300297
* throughout the entire area.
301298
*/
299+
@Override
302300
public Var<Double> estimatedScrollYProperty() { return virtualFlow.estimatedScrollYProperty(); }
303301
public double getEstimatedScrollY() { return virtualFlow.estimatedScrollYProperty().getValue(); }
304302
public void setEstimatedScrollY(double value) { virtualFlow.estimatedScrollYProperty().setValue(value); }
@@ -376,6 +374,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
376374
* uses the same font size throughout the entire area. Value is only supposed to be <em>set</em> by
377375
* the skin, not the user.
378376
*/
377+
@Override
379378
public Val<Double> totalWidthEstimateProperty() { return virtualFlow.totalWidthEstimateProperty(); }
380379
public double getTotalWidthEstimate() { return virtualFlow.totalWidthEstimateProperty().getValue(); }
381380

@@ -385,6 +384,7 @@ public Optional<Tuple2<Codec<S>, Codec<PS>>> getStyleCodecs() {
385384
* uses the same font size throughout the entire area. Value is only supposed to be <em>set</em> by
386385
* the skin, not the user.
387386
*/
387+
@Override
388388
public Val<Double> totalHeightEstimateProperty() { return virtualFlow.totalHeightEstimateProperty(); }
389389
public double getTotalHeightEstimate() { return virtualFlow.totalHeightEstimateProperty().getValue(); }
390390

@@ -596,7 +596,7 @@ public <C> StyledTextArea(S initialStyle, BiConsumer<? super TextExt, S> applySt
596596
caretVisible = EventStreams.valuesOf(blinkCaret)
597597
.flatMap(blink -> blink
598598
? booleanPulse(Duration.ofMillis(500))
599-
: valuesOf(Val.constant(false)))
599+
: EventStreams.valuesOf(Val.constant(false)))
600600
.toBinding(false);
601601

602602
// Adjust popup anchor by either a user-provided function,

0 commit comments

Comments
 (0)