public class SettingsImpl extends java.lang.Object implements EditorSettings
| Constructor and Description |
|---|
SettingsImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areGutterIconsShown() |
int |
getAdditionalColumnsCount() |
int |
getAdditionalLinesCount() |
int |
getCaretBlinkPeriod() |
int |
getCustomSoftWrapIndent() |
Language |
getLanguage() |
int |
getLineCursorWidth() |
int |
getRightMargin(Project project) |
java.util.List<java.lang.Integer> |
getSoftMargins()
Retrieves a list of soft margins (visual indent guides) to be used in the editor.
|
SoftWrapAppliancePlaces |
getSoftWrapAppliancePlace()
Deprecated.
use
EditorKind |
int |
getTabSize(Project project) |
boolean |
isAdditionalPageAtBottom() |
boolean |
isAllowSingleLogicalLineFolding() |
boolean |
isAllSoftWrapsShown() |
boolean |
isAnimatedScrolling() |
boolean |
isAutoCodeFoldingEnabled() |
boolean |
isBlinkCaret() |
boolean |
isBlockCursor() |
boolean |
isCamelWords() |
boolean |
isCaretInsideTabs() |
boolean |
isCaretRowShown() |
boolean |
isDndEnabled() |
boolean |
isFoldingOutlineShown() |
boolean |
isIndentGuidesShown() |
boolean |
isInnerWhitespaceShown() |
boolean |
isLeadingWhitespaceShown() |
boolean |
isLineMarkerAreaShown() |
boolean |
isLineNumbersShown() |
boolean |
isMouseClickSelectionHonorsCamelWords() |
boolean |
isPreselectRename() |
boolean |
isRefrainFromScrolling() |
boolean |
isRightMarginShown() |
boolean |
isShowIntentionBulb() |
boolean |
isSmartHome() |
boolean |
isTrailingWhitespaceShown() |
boolean |
isUseCustomSoftWrapIndent() |
boolean |
isUseSoftWraps() |
boolean |
isUseTabCharacter(Project project) |
boolean |
isVariableInplaceRenameEnabled() |
boolean |
isVirtualSpace() |
boolean |
isWheelFontChangeEnabled() |
boolean |
isWhitespacesShown() |
boolean |
isWrapWhenTypingReachesRightMargin(Project project) |
void |
reinitSettings() |
void |
resetCamelWords()
Allows to remove 'use camel words' setup specific to the current settings object (if any) and use the shared one.
|
void |
setAdditionalColumnsCount(int additionalColumnsCount) |
void |
setAdditionalLinesCount(int additionalLinesCount) |
void |
setAdditionalPageAtBottom(boolean val) |
void |
setAllowSingleLogicalLineFolding(boolean allow)
By default, gutter mark (for collapsing/expanding the region using mouse) is not shown for a folding region, if it's contained within
a single document line.
|
void |
setAnimatedScrolling(boolean val) |
void |
setAutoCodeFoldingEnabled(boolean val) |
void |
setBlinkCaret(boolean val) |
void |
setBlockCursor(boolean val) |
void |
setCamelWords(boolean val) |
void |
setCaretBlinkPeriod(int blinkPeriod) |
void |
setCaretInsideTabs(boolean allow) |
void |
setCaretRowShown(boolean val) |
void |
setCustomSoftWrapIndent(int indent) |
void |
setDndEnabled(boolean val) |
void |
setFoldingOutlineShown(boolean val) |
void |
setGutterIconsShown(boolean val) |
void |
setIndentGuidesShown(boolean val) |
void |
setInnerWhitespaceShown(boolean val) |
void |
setLanguageSupplier(java.util.function.Supplier<? extends Language> languageSupplier) |
void |
setLeadingWhitespaceShown(boolean val) |
void |
setLineCursorWidth(int width) |
void |
setLineMarkerAreaShown(boolean lineMarkerAreaShown) |
void |
setLineNumbersShown(boolean val) |
void |
setMouseClickSelectionHonorsCamelWords(boolean val) |
void |
setPreselectRename(boolean val) |
void |
setRefrainFromScrolling(boolean b) |
void |
setRightMargin(int rightMargin) |
void |
setRightMarginShown(boolean val) |
void |
setShowIntentionBulb(boolean show) |
void |
setSmartHome(boolean val) |
void |
setSoftMargins(java.util.List<java.lang.Integer> softMargins)
Explicitly sets soft margins (visual indent guides) to be used in the editor instead of obtaining them from code style settings via
CodeStyleSettings.getSoftMargins() method. |
void |
setTabSize(int tabSize) |
void |
setTrailingWhitespaceShown(boolean val) |
void |
setUseCustomSoftWrapIndent(boolean useCustomSoftWrapIndent) |
void |
setUseSoftWraps(boolean use) |
void |
setUseTabCharacter(boolean val) |
void |
setVariableInplaceRenameEnabled(boolean val) |
void |
setVirtualSpace(boolean allow) |
void |
setWheelFontChangeEnabled(boolean val) |
void |
setWhitespacesShown(boolean val) |
void |
setWrapWhenTypingReachesRightMargin(boolean val) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLanguagepublic boolean isRightMarginShown()
isRightMarginShown in interface EditorSettingspublic void setRightMarginShown(boolean val)
setRightMarginShown in interface EditorSettingspublic boolean isWhitespacesShown()
isWhitespacesShown in interface EditorSettingspublic void setWhitespacesShown(boolean val)
setWhitespacesShown in interface EditorSettingspublic boolean isLeadingWhitespaceShown()
isLeadingWhitespaceShown in interface EditorSettingspublic void setLeadingWhitespaceShown(boolean val)
setLeadingWhitespaceShown in interface EditorSettingspublic boolean isInnerWhitespaceShown()
isInnerWhitespaceShown in interface EditorSettingspublic void setInnerWhitespaceShown(boolean val)
setInnerWhitespaceShown in interface EditorSettingspublic boolean isTrailingWhitespaceShown()
isTrailingWhitespaceShown in interface EditorSettingspublic void setTrailingWhitespaceShown(boolean val)
setTrailingWhitespaceShown in interface EditorSettingspublic boolean isIndentGuidesShown()
isIndentGuidesShown in interface EditorSettingspublic void setIndentGuidesShown(boolean val)
setIndentGuidesShown in interface EditorSettingspublic boolean isLineNumbersShown()
isLineNumbersShown in interface EditorSettingspublic void setLineNumbersShown(boolean val)
setLineNumbersShown in interface EditorSettingspublic boolean areGutterIconsShown()
areGutterIconsShown in interface EditorSettingspublic void setGutterIconsShown(boolean val)
setGutterIconsShown in interface EditorSettingspublic int getRightMargin(Project project)
getRightMargin in interface EditorSettingspublic boolean isWrapWhenTypingReachesRightMargin(Project project)
isWrapWhenTypingReachesRightMargin in interface EditorSettingspublic void setWrapWhenTypingReachesRightMargin(boolean val)
setWrapWhenTypingReachesRightMargin in interface EditorSettingspublic void setRightMargin(int rightMargin)
setRightMargin in interface EditorSettingspublic java.util.List<java.lang.Integer> getSoftMargins()
EditorSettingsEditorSettings.setSoftMargins(List) method, they are obtained from code style settings: CodeStyleSettings.getSoftMargins().getSoftMargins in interface EditorSettingspublic void setSoftMargins(java.util.List<java.lang.Integer> softMargins)
EditorSettingsCodeStyleSettings.getSoftMargins() method. It is important to distinguish and empty list from null value: the first
will define no soft margins for the eidtor while the latter will restore the default behavior of using them from code style settings.setSoftMargins in interface EditorSettingssoftMargins - A list of soft margins or null to use margins from code style settings.public int getAdditionalLinesCount()
getAdditionalLinesCount in interface EditorSettingspublic void setAdditionalLinesCount(int additionalLinesCount)
setAdditionalLinesCount in interface EditorSettingspublic int getAdditionalColumnsCount()
getAdditionalColumnsCount in interface EditorSettingspublic void setAdditionalColumnsCount(int additionalColumnsCount)
setAdditionalColumnsCount in interface EditorSettingspublic boolean isLineMarkerAreaShown()
isLineMarkerAreaShown in interface EditorSettingspublic void setLineMarkerAreaShown(boolean lineMarkerAreaShown)
setLineMarkerAreaShown in interface EditorSettingspublic boolean isFoldingOutlineShown()
isFoldingOutlineShown in interface EditorSettingspublic void setFoldingOutlineShown(boolean val)
setFoldingOutlineShown in interface EditorSettingspublic boolean isAutoCodeFoldingEnabled()
isAutoCodeFoldingEnabled in interface EditorSettingspublic void setAutoCodeFoldingEnabled(boolean val)
setAutoCodeFoldingEnabled in interface EditorSettingspublic boolean isUseTabCharacter(Project project)
isUseTabCharacter in interface EditorSettingspublic void setUseTabCharacter(boolean val)
setUseTabCharacter in interface EditorSettings@Deprecated public SoftWrapAppliancePlaces getSoftWrapAppliancePlace()
EditorKindpublic void reinitSettings()
public int getTabSize(Project project)
getTabSize in interface EditorSettingspublic void setTabSize(int tabSize)
setTabSize in interface EditorSettingspublic boolean isSmartHome()
isSmartHome in interface EditorSettingspublic void setSmartHome(boolean val)
setSmartHome in interface EditorSettingspublic boolean isVirtualSpace()
isVirtualSpace in interface EditorSettingspublic void setVirtualSpace(boolean allow)
setVirtualSpace in interface EditorSettingspublic boolean isAdditionalPageAtBottom()
isAdditionalPageAtBottom in interface EditorSettingspublic void setAdditionalPageAtBottom(boolean val)
setAdditionalPageAtBottom in interface EditorSettingspublic boolean isCaretInsideTabs()
isCaretInsideTabs in interface EditorSettingspublic void setCaretInsideTabs(boolean allow)
setCaretInsideTabs in interface EditorSettingspublic boolean isBlockCursor()
isBlockCursor in interface EditorSettingspublic void setBlockCursor(boolean val)
setBlockCursor in interface EditorSettingspublic boolean isCaretRowShown()
isCaretRowShown in interface EditorSettingspublic void setCaretRowShown(boolean val)
setCaretRowShown in interface EditorSettingspublic int getLineCursorWidth()
getLineCursorWidth in interface EditorSettingspublic void setLineCursorWidth(int width)
setLineCursorWidth in interface EditorSettingspublic boolean isAnimatedScrolling()
isAnimatedScrolling in interface EditorSettingspublic void setAnimatedScrolling(boolean val)
setAnimatedScrolling in interface EditorSettingspublic boolean isCamelWords()
isCamelWords in interface EditorSettingspublic void setCamelWords(boolean val)
setCamelWords in interface EditorSettingspublic void resetCamelWords()
EditorSettingsresetCamelWords in interface EditorSettingspublic boolean isBlinkCaret()
isBlinkCaret in interface EditorSettingspublic void setBlinkCaret(boolean val)
setBlinkCaret in interface EditorSettingspublic int getCaretBlinkPeriod()
getCaretBlinkPeriod in interface EditorSettingspublic void setCaretBlinkPeriod(int blinkPeriod)
setCaretBlinkPeriod in interface EditorSettingspublic boolean isDndEnabled()
isDndEnabled in interface EditorSettingspublic void setDndEnabled(boolean val)
setDndEnabled in interface EditorSettingspublic boolean isWheelFontChangeEnabled()
isWheelFontChangeEnabled in interface EditorSettingspublic void setWheelFontChangeEnabled(boolean val)
setWheelFontChangeEnabled in interface EditorSettingspublic boolean isMouseClickSelectionHonorsCamelWords()
isMouseClickSelectionHonorsCamelWords in interface EditorSettingspublic void setMouseClickSelectionHonorsCamelWords(boolean val)
setMouseClickSelectionHonorsCamelWords in interface EditorSettingspublic boolean isVariableInplaceRenameEnabled()
isVariableInplaceRenameEnabled in interface EditorSettingspublic void setVariableInplaceRenameEnabled(boolean val)
setVariableInplaceRenameEnabled in interface EditorSettingspublic boolean isRefrainFromScrolling()
isRefrainFromScrolling in interface EditorSettingspublic void setRefrainFromScrolling(boolean b)
setRefrainFromScrolling in interface EditorSettingspublic boolean isUseSoftWraps()
isUseSoftWraps in interface EditorSettingspublic void setUseSoftWraps(boolean use)
setUseSoftWraps in interface EditorSettingspublic boolean isAllSoftWrapsShown()
isAllSoftWrapsShown in interface EditorSettingspublic boolean isUseCustomSoftWrapIndent()
isUseCustomSoftWrapIndent in interface EditorSettingspublic void setUseCustomSoftWrapIndent(boolean useCustomSoftWrapIndent)
setUseCustomSoftWrapIndent in interface EditorSettingspublic int getCustomSoftWrapIndent()
getCustomSoftWrapIndent in interface EditorSettingspublic void setCustomSoftWrapIndent(int indent)
setCustomSoftWrapIndent in interface EditorSettingspublic boolean isAllowSingleLogicalLineFolding()
isAllowSingleLogicalLineFolding in interface EditorSettingsEditorSettings.setAllowSingleLogicalLineFolding(boolean)public void setAllowSingleLogicalLineFolding(boolean allow)
EditorSettingsFoldRegion.setGutterMarkEnabledForSingleLine(boolean).setAllowSingleLogicalLineFolding in interface EditorSettingspublic boolean isPreselectRename()
isPreselectRename in interface EditorSettingspublic void setPreselectRename(boolean val)
setPreselectRename in interface EditorSettingspublic boolean isShowIntentionBulb()
isShowIntentionBulb in interface EditorSettingspublic void setShowIntentionBulb(boolean show)
setShowIntentionBulb in interface EditorSettingspublic Language getLanguage()
public void setLanguageSupplier(java.util.function.Supplier<? extends Language> languageSupplier)
setLanguageSupplier in interface EditorSettings