EditorPosition(@NotNull LogicalPosition logical, @NotNull VisualPosition visual, int offset, @NotNull Editor editor, @NotNull EditorTextRepresentationHelper representationHelper) { myEditor = editor; myRepresentationHelper = representationHelper; logicalLine = logical.line; logicalColumn = logical.column; softWrapLinesBefore = logical.softWrapLinesBeforeCurrentLogicalLine; softWrapLinesCurrent = logical.softWrapLinesOnCurrentLogicalLine; softWrapColumnDiff = logical.softWrapColumnDiff; foldedLines = logical.foldedLines; foldingColumnDiff = logical.foldingColumnDiff; visualLine = visual.line; visualColumn = visual.column; this.offset = offset; }
EditorPosition(@NotNull LogicalPosition logical, int offset, @NotNull Editor editor, @NotNull EditorTextRepresentationHelper representationHelper) { this(logical, logical.toVisualPosition(), offset, editor, representationHelper); }
FoldingData(@NotNull FoldRegion foldRegion, int startX, @NotNull EditorTextRepresentationHelper representationHelper, @NotNull Editor editor) { myFoldRegion = foldRegion; this.startX = startX; myRepresentationHelper = representationHelper; myEditor = editor; }
LogicalToVisualMappingStrategy(@NotNull LogicalPosition logical, @NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull EditorTextRepresentationHelper representationHelper, @NotNull List<CacheEntry> cache) throws IllegalStateException { super(editor, storage, cache, representationHelper); myTargetLogical = logical; }
AbstractMappingStrategy(@NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache, @NotNull EditorTextRepresentationHelper representationHelper) { myEditor = editor; myStorage = storage; myCache = cache; myRepresentationHelper = representationHelper; }
public CachingSoftWrapDataMapper(@NotNull EditorEx editor, @NotNull SoftWrapsStorage storage, @NotNull EditorTextRepresentationHelper representationHelper) { myEditor = editor; myStorage = storage; myRepresentationHelper = representationHelper; mySearchKey = new CacheEntry(0, editor, representationHelper); myOffsetToLogicalStrategy = new OffsetToLogicalCalculationStrategy(editor, storage, myCache, representationHelper); myVisualToLogicalStrategy = new VisualToLogicalCalculationStrategy(editor, storage, myCache, representationHelper); }
@Override public EditorTextRepresentationHelper getEditorTextRepresentationHelper() { throw new UnsupportedOperationException(); }
EditorPosition(@NotNull Editor editor, @NotNull EditorTextRepresentationHelper representationHelper) { myEditor = editor; myRepresentationHelper = representationHelper; }
CacheEntry(int visualLine, @NotNull Editor editor, @NotNull EditorTextRepresentationHelper representationHelper) { this.visualLine = visualLine; myEditor = editor; myRepresentationHelper = representationHelper; }
VisualToLogicalCalculationStrategy(@NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache, @NotNull EditorTextRepresentationHelper representationHelper) { super(editor, storage, cache, representationHelper); mySearchKey = new CacheEntry(0, editor, representationHelper); }
OffsetToLogicalCalculationStrategy(@NotNull Editor editor, @NotNull SoftWrapsStorage storage, @NotNull List<CacheEntry> cache, @NotNull EditorTextRepresentationHelper representationHelper) { super(editor, storage, cache, representationHelper); }
EditorTextRepresentationHelper getEditorTextRepresentationHelper();