Class TabsToSpacesConverter

  • All Implemented Interfaces:
    IAutoEditStrategy

    public class TabsToSpacesConverter
    extends Object
    implements IAutoEditStrategy
    Auto edit strategy that converts tabs into spaces.

    Clients usually instantiate and configure this class but can also extend it in their own subclass.

    Since:
    3.3
    • Constructor Detail

      • TabsToSpacesConverter

        public TabsToSpacesConverter()
    • Method Detail

      • setNumberOfSpacesPerTab

        public void setNumberOfSpacesPerTab​(int ratio)
      • setDeleteSpacesAsTab

        public void setDeleteSpacesAsTab​(boolean enabled)
        Parameters:
        enabled - if true, spaces deletion will be modified to match tabs behavior
        Since:
        3.16
      • setLineTracker

        public void setLineTracker​(ILineTracker lineTracker)