public class DetectableIndentOptionsProvider extends FileIndentOptionsProvider
EP_NAME
Constructor and Description |
---|
DetectableIndentOptionsProvider() |
Modifier and Type | Method and Description |
---|---|
CommonCodeStyleSettings.IndentOptions |
getIndentOptions(CodeStyleSettings settings,
PsiFile file)
Retrieves indent options for PSI file.
|
IndentStatusBarUIContributor |
getIndentStatusBarUiContributor(CommonCodeStyleSettings.IndentOptions indentOptions) |
static DetectableIndentOptionsProvider |
getInstance() |
TimeStampedIndentOptions |
getValidCachedIndentOptions(PsiFile file,
Document document) |
protected void |
scheduleDetectionInBackground(Project project,
Document document,
TimeStampedIndentOptions options) |
void |
setEnabledInTest(boolean isEnabledInTest) |
boolean |
useOnFullReformat()
Tells if the provider can be used when a complete file is reformatted.
|
notifyIndentOptionsChanged
public CommonCodeStyleSettings.IndentOptions getIndentOptions(CodeStyleSettings settings, PsiFile file)
FileIndentOptionsProvider
getIndentOptions
in class FileIndentOptionsProvider
settings
- Code style settings for which indent options are calculated.file
- The file to retrieve options for.null
if the provider can't retrieve them.protected void scheduleDetectionInBackground(Project project, Document document, TimeStampedIndentOptions options)
public boolean useOnFullReformat()
FileIndentOptionsProvider
useOnFullReformat
in class FileIndentOptionsProvider
public void setEnabledInTest(boolean isEnabledInTest)
public static DetectableIndentOptionsProvider getInstance()
public TimeStampedIndentOptions getValidCachedIndentOptions(PsiFile file, Document document)
public IndentStatusBarUIContributor getIndentStatusBarUiContributor(CommonCodeStyleSettings.IndentOptions indentOptions)
getIndentStatusBarUiContributor
in class FileIndentOptionsProvider