Package org.eclipse.jface.text
Class TabsToSpacesConverter
java.lang.Object
org.eclipse.jface.text.TabsToSpacesConverter
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomizeDocumentCommand(IDocument document, DocumentCommand command) Allows the strategy to manipulate the document command.voidsetDeleteSpacesAsTab(boolean enabled) voidsetLineTracker(ILineTracker lineTracker) voidsetNumberOfSpacesPerTab(int ratio)
-
Constructor Details
-
TabsToSpacesConverter
public TabsToSpacesConverter()
-
-
Method Details
-
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
-
customizeDocumentCommand
Description copied from interface:IAutoEditStrategyAllows the strategy to manipulate the document command.- Specified by:
customizeDocumentCommandin interfaceIAutoEditStrategy- Parameters:
document- the document that will be changedcommand- the document command describing the change
-