public class DelegatingCodeStyleManager
extends com.intellij.psi.codeStyle.CodeStyleManager
implements com.intellij.psi.codeStyle.FormattingModeAwareIndentAdjuster
CodeStyleManager implementation that delegates all calls.| Constructor and Description |
|---|
DelegatingCodeStyleManager(com.intellij.psi.codeStyle.CodeStyleManager delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
adjustLineIndent(com.intellij.openapi.editor.Document document,
int offset) |
int |
adjustLineIndent(com.intellij.openapi.editor.Document document,
int offset,
com.intellij.formatting.FormattingMode mode) |
int |
adjustLineIndent(com.intellij.psi.PsiFile file,
int offset) |
void |
adjustLineIndent(com.intellij.psi.PsiFile file,
com.intellij.openapi.util.TextRange rangeToAdjust) |
String |
fillIndent(com.intellij.psi.codeStyle.Indent indent,
com.intellij.openapi.fileTypes.FileType fileType)
Deprecated.
|
com.intellij.formatting.FormattingMode |
getCurrentFormattingMode() |
com.intellij.psi.codeStyle.CodeStyleManager |
getDelegate() |
com.intellij.psi.codeStyle.DocCommentSettings |
getDocCommentSettings(com.intellij.psi.PsiFile file) |
com.intellij.psi.codeStyle.Indent |
getIndent(String text,
com.intellij.openapi.fileTypes.FileType fileType)
Deprecated.
|
String |
getLineIndent(com.intellij.openapi.editor.Document document,
int offset) |
String |
getLineIndent(com.intellij.psi.PsiFile file,
int offset) |
int |
getMinLineFeeds(com.intellij.psi.PsiFile file,
int offset) |
com.intellij.openapi.project.Project |
getProject() |
int |
getSpacing(com.intellij.psi.PsiFile file,
int offset) |
boolean |
isLineToBeIndented(com.intellij.psi.PsiFile file,
int offset)
Deprecated.
|
boolean |
isSequentialProcessingAllowed() |
<T> T |
performActionWithFormatterDisabled(com.intellij.openapi.util.Computable<T> r) |
void |
performActionWithFormatterDisabled(Runnable r) |
<T extends Throwable> |
performActionWithFormatterDisabled(com.intellij.util.ThrowableRunnable<T> r) |
com.intellij.psi.PsiElement |
reformat(com.intellij.psi.PsiElement element) |
com.intellij.psi.PsiElement |
reformat(com.intellij.psi.PsiElement element,
boolean canChangeWhiteSpacesOnly) |
void |
reformatNewlyAddedElement(com.intellij.lang.ASTNode block,
com.intellij.lang.ASTNode addedElement) |
com.intellij.psi.PsiElement |
reformatRange(com.intellij.psi.PsiElement element,
int startOffset,
int endOffset) |
com.intellij.psi.PsiElement |
reformatRange(com.intellij.psi.PsiElement element,
int startOffset,
int endOffset,
boolean canChangeWhiteSpacesOnly) |
void |
reformatText(com.intellij.psi.PsiFile file,
Collection<com.intellij.openapi.util.TextRange> ranges) |
void |
reformatText(com.intellij.psi.PsiFile file,
int startOffset,
int endOffset) |
void |
reformatTextWithContext(com.intellij.psi.PsiFile file,
com.intellij.psi.codeStyle.ChangedRangesInfo info) |
void |
reformatTextWithContext(com.intellij.psi.PsiFile file,
Collection<com.intellij.openapi.util.TextRange> ranges) |
void |
runWithDocCommentFormattingDisabled(com.intellij.psi.PsiFile file,
Runnable runnable) |
com.intellij.psi.codeStyle.Indent |
zeroIndent()
Deprecated.
|
public DelegatingCodeStyleManager(com.intellij.psi.codeStyle.CodeStyleManager delegate)
public com.intellij.psi.codeStyle.CodeStyleManager getDelegate()
public int getSpacing(com.intellij.psi.PsiFile file,
int offset)
getSpacing in class com.intellij.psi.codeStyle.CodeStyleManagerpublic int getMinLineFeeds(com.intellij.psi.PsiFile file,
int offset)
getMinLineFeeds in class com.intellij.psi.codeStyle.CodeStyleManagerpublic void runWithDocCommentFormattingDisabled(com.intellij.psi.PsiFile file,
Runnable runnable)
runWithDocCommentFormattingDisabled in class com.intellij.psi.codeStyle.CodeStyleManagerpublic com.intellij.psi.codeStyle.DocCommentSettings getDocCommentSettings(com.intellij.psi.PsiFile file)
getDocCommentSettings in class com.intellij.psi.codeStyle.CodeStyleManagerpublic com.intellij.openapi.project.Project getProject()
getProject in class com.intellij.psi.codeStyle.CodeStyleManagerpublic com.intellij.psi.PsiElement reformat(com.intellij.psi.PsiElement element)
throws com.intellij.util.IncorrectOperationException
reformat in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic com.intellij.psi.PsiElement reformat(com.intellij.psi.PsiElement element,
boolean canChangeWhiteSpacesOnly)
throws com.intellij.util.IncorrectOperationException
reformat in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic com.intellij.psi.PsiElement reformatRange(com.intellij.psi.PsiElement element,
int startOffset,
int endOffset)
throws com.intellij.util.IncorrectOperationException
reformatRange in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic com.intellij.psi.PsiElement reformatRange(com.intellij.psi.PsiElement element,
int startOffset,
int endOffset,
boolean canChangeWhiteSpacesOnly)
throws com.intellij.util.IncorrectOperationException
reformatRange in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic void reformatText(com.intellij.psi.PsiFile file,
int startOffset,
int endOffset)
throws com.intellij.util.IncorrectOperationException
reformatText in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic void reformatText(com.intellij.psi.PsiFile file,
Collection<com.intellij.openapi.util.TextRange> ranges)
throws com.intellij.util.IncorrectOperationException
reformatText in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic void reformatTextWithContext(com.intellij.psi.PsiFile file,
Collection<com.intellij.openapi.util.TextRange> ranges)
throws com.intellij.util.IncorrectOperationException
reformatTextWithContext in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic void reformatTextWithContext(com.intellij.psi.PsiFile file,
com.intellij.psi.codeStyle.ChangedRangesInfo info)
throws com.intellij.util.IncorrectOperationException
reformatTextWithContext in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic void adjustLineIndent(com.intellij.psi.PsiFile file,
com.intellij.openapi.util.TextRange rangeToAdjust)
throws com.intellij.util.IncorrectOperationException
adjustLineIndent in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic int adjustLineIndent(com.intellij.psi.PsiFile file,
int offset)
throws com.intellij.util.IncorrectOperationException
adjustLineIndent in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic int adjustLineIndent(com.intellij.openapi.editor.Document document,
int offset)
adjustLineIndent in class com.intellij.psi.codeStyle.CodeStyleManager@Deprecated public boolean isLineToBeIndented(com.intellij.psi.PsiFile file, int offset)
isLineToBeIndented in class com.intellij.psi.codeStyle.CodeStyleManagerpublic String getLineIndent(com.intellij.psi.PsiFile file, int offset)
getLineIndent in class com.intellij.psi.codeStyle.CodeStyleManagerpublic String getLineIndent(com.intellij.openapi.editor.Document document, int offset)
getLineIndent in class com.intellij.psi.codeStyle.CodeStyleManager@Deprecated public com.intellij.psi.codeStyle.Indent getIndent(String text, com.intellij.openapi.fileTypes.FileType fileType)
getIndent in class com.intellij.psi.codeStyle.CodeStyleManager@Deprecated public String fillIndent(com.intellij.psi.codeStyle.Indent indent, com.intellij.openapi.fileTypes.FileType fileType)
fillIndent in class com.intellij.psi.codeStyle.CodeStyleManager@Deprecated public com.intellij.psi.codeStyle.Indent zeroIndent()
zeroIndent in class com.intellij.psi.codeStyle.CodeStyleManagerpublic void reformatNewlyAddedElement(com.intellij.lang.ASTNode block,
com.intellij.lang.ASTNode addedElement)
throws com.intellij.util.IncorrectOperationException
reformatNewlyAddedElement in class com.intellij.psi.codeStyle.CodeStyleManagercom.intellij.util.IncorrectOperationExceptionpublic boolean isSequentialProcessingAllowed()
isSequentialProcessingAllowed in class com.intellij.psi.codeStyle.CodeStyleManagerpublic void performActionWithFormatterDisabled(Runnable r)
performActionWithFormatterDisabled in class com.intellij.psi.codeStyle.CodeStyleManagerpublic <T extends Throwable> void performActionWithFormatterDisabled(com.intellij.util.ThrowableRunnable<T> r) throws T extends Throwable
performActionWithFormatterDisabled in class com.intellij.psi.codeStyle.CodeStyleManagerT extends Throwablepublic <T> T performActionWithFormatterDisabled(com.intellij.openapi.util.Computable<T> r)
performActionWithFormatterDisabled in class com.intellij.psi.codeStyle.CodeStyleManagerpublic int adjustLineIndent(com.intellij.openapi.editor.Document document,
int offset,
com.intellij.formatting.FormattingMode mode)
adjustLineIndent in interface com.intellij.psi.codeStyle.FormattingModeAwareIndentAdjusterpublic com.intellij.formatting.FormattingMode getCurrentFormattingMode()
getCurrentFormattingMode in interface com.intellij.psi.codeStyle.FormattingModeAwareIndentAdjusterCopyright © 2019. All rights reserved.