Class NewLineIndent

All Implemented Interfaces:
MultilineEdit.Model, MultilineEditCorrector, Lines

public class NewLineIndent extends EditAugmentationUtils
  • Constructor Details

  • Method Details

    • splitLine

      public MultilineEdit.ModificationResult splitLine(int pos, int lineIndex)
      Description copied from interface: MultilineEdit.Model
      Splits the specified line at the specified position. This method removes on the line all the content after the specified position and puts the deleted fragment on new line which is inserted just after modified. If the position is given outside of the stored text, the behaviour of this method is undefined.
      Specified by:
      splitLine in interface MultilineEdit.Model
      Overrides:
      splitLine in class EditUtils.EmptyCorrector
      Parameters:
      pos - The 0-based position to split line at
      lineIndex - The 0-based index of the line to split
      Returns:
      The fragment moved onto newly inserted line
    • getProperIndent

      protected int getProperIndent(int lineIndex)