public SoftWrapApplianceManager(@NotNull SoftWrapsStorage storage, @NotNull EditorImpl editor, @NotNull SoftWrapPainter painter, CachingSoftWrapDataMapper dataMapper) { myStorage = storage; myEditor = editor; myPainter = painter; myDataMapper = dataMapper; myWidthProvider = new DefaultVisibleAreaWidthProvider(editor); }
public SoftWrapApplianceManager(@Nonnull SoftWrapsStorage storage, @Nonnull EditorImpl editor, @Nonnull SoftWrapPainter painter, CachingSoftWrapDataMapper dataMapper) { myStorage = storage; myEditor = editor; myPainter = painter; myDataMapper = dataMapper; myWidthProvider = new DefaultVisibleAreaWidthProvider(editor); myEditor.getScrollingModel().addVisibleAreaListener(e -> { updateAvailableArea(); updateLastTopLeftCornerOffset(); }); }
@TestOnly public void setSoftWrapPainter(SoftWrapPainter painter) { myPainter = painter; }
public SoftWrapAwareVisualSizeManager(@NotNull SoftWrapPainter painter) { myPainter = painter; }