public static class CommonCodeStyleSettings.IndentOptions extends java.lang.Object implements java.lang.Cloneable, JDOMExternalizable
Modifier and Type | Field and Description |
---|---|
int |
ARRAY_ELEMENT_INDENT |
int |
CALL_PARAMETER_INDENT |
int |
CHAINED_CALL_INDENT |
int |
CONTINUATION_INDENT_SIZE |
int |
DECLARATION_PARAMETER_INDENT |
static CommonCodeStyleSettings.IndentOptions |
DEFAULT_INDENT_OPTIONS |
int |
GENERIC_TYPE_PARAMETER_INDENT |
int |
INDENT_SIZE |
boolean |
KEEP_INDENTS_ON_EMPTY_LINES |
boolean |
LABEL_INDENT_ABSOLUTE |
int |
LABEL_INDENT_SIZE |
boolean |
SMART_TABS |
int |
TAB_SIZE |
boolean |
USE_RELATIVE_INDENTS |
boolean |
USE_TAB_CHARACTER |
Constructor and Description |
---|
IndentOptions() |
Modifier and Type | Method and Description |
---|---|
void |
associateWithDocument(Document document) |
java.lang.Object |
clone() |
void |
copyFrom(CommonCodeStyleSettings.IndentOptions other) |
void |
deserialize(Element indentOptionsElement) |
boolean |
equals(java.lang.Object o) |
FileIndentOptionsProvider |
getFileIndentOptionsProvider() |
int |
hashCode() |
boolean |
isOverrideLanguageOptions() |
void |
readExternal(Element element) |
static CommonCodeStyleSettings.IndentOptions |
retrieveFromAssociatedDocument(PsiFile file) |
void |
serialize(Element indentOptionsElement,
CommonCodeStyleSettings.IndentOptions defaultOptions) |
void |
setOverrideLanguageOptions(boolean overrideLanguageOptions)
Make the indent options override options defined for a language block if the block implements
BlockEx.getLanguage()
Useful when indent options provider must take a priority over any language settings for a formatter block. |
void |
writeExternal(Element element) |
public static final CommonCodeStyleSettings.IndentOptions DEFAULT_INDENT_OPTIONS
public int INDENT_SIZE
public int CONTINUATION_INDENT_SIZE
public int TAB_SIZE
public boolean USE_TAB_CHARACTER
public boolean SMART_TABS
public int LABEL_INDENT_SIZE
public boolean LABEL_INDENT_ABSOLUTE
public boolean USE_RELATIVE_INDENTS
public boolean KEEP_INDENTS_ON_EMPTY_LINES
public int DECLARATION_PARAMETER_INDENT
public int GENERIC_TYPE_PARAMETER_INDENT
public int CALL_PARAMETER_INDENT
public int CHAINED_CALL_INDENT
public int ARRAY_ELEMENT_INDENT
public void readExternal(Element element)
readExternal
in interface JDOMExternalizable
public void writeExternal(Element element)
writeExternal
in interface JDOMExternalizable
public void serialize(Element indentOptionsElement, CommonCodeStyleSettings.IndentOptions defaultOptions)
public void deserialize(Element indentOptionsElement)
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void copyFrom(CommonCodeStyleSettings.IndentOptions other)
public FileIndentOptionsProvider getFileIndentOptionsProvider()
public void associateWithDocument(Document document)
public static CommonCodeStyleSettings.IndentOptions retrieveFromAssociatedDocument(PsiFile file)
public boolean isOverrideLanguageOptions()
setOverrideLanguageOptions(boolean)
public void setOverrideLanguageOptions(boolean overrideLanguageOptions)
BlockEx.getLanguage()
Useful when indent options provider must take a priority over any language settings for a formatter block.overrideLanguageOptions
- True if language block options should be ignored.FileIndentOptionsProvider