Class SpringJavaFormatFormattingService
java.lang.Object
com.intellij.formatting.service.AbstractDocumentFormattingService
io.spring.format.formatter.intellij.formatting.SpringJavaFormatFormattingService
- All Implemented Interfaces:
com.intellij.formatting.service.FormattingService
public class SpringJavaFormatFormattingService
extends com.intellij.formatting.service.AbstractDocumentFormattingService
FormattingService to apply Spring formatting conventions.- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.intellij.formatting.service.FormattingService
com.intellij.formatting.service.FormattingService.Feature -
Field Summary
Fields inherited from interface com.intellij.formatting.service.FormattingService
EP_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanFormat(com.intellij.psi.PsiFile file) voidformatDocument(com.intellij.openapi.editor.Document document, List<com.intellij.openapi.util.TextRange> formattingRanges, com.intellij.formatting.FormattingContext formattingContext, boolean canChangeWhiteSpaceOnly, boolean quickFormat) Set<com.intellij.formatting.service.FormattingService.Feature>Methods inherited from class com.intellij.formatting.service.AbstractDocumentFormattingService
formatElement, formatElement, formatRanges, getImportOptimizers, setDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.intellij.formatting.service.FormattingService
runAfter
-
Constructor Details
-
SpringJavaFormatFormattingService
public SpringJavaFormatFormattingService()
-
-
Method Details
-
getFeatures
-
canFormat
public boolean canFormat(@NotNull com.intellij.psi.PsiFile file) -
formatDocument
public void formatDocument(@NotNull com.intellij.openapi.editor.Document document, @NotNull List<com.intellij.openapi.util.TextRange> formattingRanges, @NotNull com.intellij.formatting.FormattingContext formattingContext, boolean canChangeWhiteSpaceOnly, boolean quickFormat) - Specified by:
formatDocumentin classcom.intellij.formatting.service.AbstractDocumentFormattingService
-