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, wait
setLanguage
public boolean isRightMarginShown()
isRightMarginShown
in interface EditorSettings
public void setRightMarginShown(boolean val)
setRightMarginShown
in interface EditorSettings
public boolean isWhitespacesShown()
isWhitespacesShown
in interface EditorSettings
public void setWhitespacesShown(boolean val)
setWhitespacesShown
in interface EditorSettings
public boolean isLeadingWhitespaceShown()
isLeadingWhitespaceShown
in interface EditorSettings
public void setLeadingWhitespaceShown(boolean val)
setLeadingWhitespaceShown
in interface EditorSettings
public boolean isInnerWhitespaceShown()
isInnerWhitespaceShown
in interface EditorSettings
public void setInnerWhitespaceShown(boolean val)
setInnerWhitespaceShown
in interface EditorSettings
public boolean isTrailingWhitespaceShown()
isTrailingWhitespaceShown
in interface EditorSettings
public void setTrailingWhitespaceShown(boolean val)
setTrailingWhitespaceShown
in interface EditorSettings
public boolean isIndentGuidesShown()
isIndentGuidesShown
in interface EditorSettings
public void setIndentGuidesShown(boolean val)
setIndentGuidesShown
in interface EditorSettings
public boolean isLineNumbersShown()
isLineNumbersShown
in interface EditorSettings
public void setLineNumbersShown(boolean val)
setLineNumbersShown
in interface EditorSettings
public boolean areGutterIconsShown()
areGutterIconsShown
in interface EditorSettings
public void setGutterIconsShown(boolean val)
setGutterIconsShown
in interface EditorSettings
public int getRightMargin(Project project)
getRightMargin
in interface EditorSettings
public boolean isWrapWhenTypingReachesRightMargin(Project project)
isWrapWhenTypingReachesRightMargin
in interface EditorSettings
public void setWrapWhenTypingReachesRightMargin(boolean val)
setWrapWhenTypingReachesRightMargin
in interface EditorSettings
public void setRightMargin(int rightMargin)
setRightMargin
in interface EditorSettings
public java.util.List<java.lang.Integer> getSoftMargins()
EditorSettings
EditorSettings.setSoftMargins(List)
method, they are obtained from code style settings: CodeStyleSettings.getSoftMargins()
.getSoftMargins
in interface EditorSettings
public void setSoftMargins(java.util.List<java.lang.Integer> softMargins)
EditorSettings
CodeStyleSettings.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 EditorSettings
softMargins
- A list of soft margins or null
to use margins from code style settings.public int getAdditionalLinesCount()
getAdditionalLinesCount
in interface EditorSettings
public void setAdditionalLinesCount(int additionalLinesCount)
setAdditionalLinesCount
in interface EditorSettings
public int getAdditionalColumnsCount()
getAdditionalColumnsCount
in interface EditorSettings
public void setAdditionalColumnsCount(int additionalColumnsCount)
setAdditionalColumnsCount
in interface EditorSettings
public boolean isLineMarkerAreaShown()
isLineMarkerAreaShown
in interface EditorSettings
public void setLineMarkerAreaShown(boolean lineMarkerAreaShown)
setLineMarkerAreaShown
in interface EditorSettings
public boolean isFoldingOutlineShown()
isFoldingOutlineShown
in interface EditorSettings
public void setFoldingOutlineShown(boolean val)
setFoldingOutlineShown
in interface EditorSettings
public boolean isAutoCodeFoldingEnabled()
isAutoCodeFoldingEnabled
in interface EditorSettings
public void setAutoCodeFoldingEnabled(boolean val)
setAutoCodeFoldingEnabled
in interface EditorSettings
public boolean isUseTabCharacter(Project project)
isUseTabCharacter
in interface EditorSettings
public void setUseTabCharacter(boolean val)
setUseTabCharacter
in interface EditorSettings
@Deprecated public SoftWrapAppliancePlaces getSoftWrapAppliancePlace()
EditorKind
public void reinitSettings()
public int getTabSize(Project project)
getTabSize
in interface EditorSettings
public void setTabSize(int tabSize)
setTabSize
in interface EditorSettings
public boolean isSmartHome()
isSmartHome
in interface EditorSettings
public void setSmartHome(boolean val)
setSmartHome
in interface EditorSettings
public boolean isVirtualSpace()
isVirtualSpace
in interface EditorSettings
public void setVirtualSpace(boolean allow)
setVirtualSpace
in interface EditorSettings
public boolean isAdditionalPageAtBottom()
isAdditionalPageAtBottom
in interface EditorSettings
public void setAdditionalPageAtBottom(boolean val)
setAdditionalPageAtBottom
in interface EditorSettings
public boolean isCaretInsideTabs()
isCaretInsideTabs
in interface EditorSettings
public void setCaretInsideTabs(boolean allow)
setCaretInsideTabs
in interface EditorSettings
public boolean isBlockCursor()
isBlockCursor
in interface EditorSettings
public void setBlockCursor(boolean val)
setBlockCursor
in interface EditorSettings
public boolean isCaretRowShown()
isCaretRowShown
in interface EditorSettings
public void setCaretRowShown(boolean val)
setCaretRowShown
in interface EditorSettings
public int getLineCursorWidth()
getLineCursorWidth
in interface EditorSettings
public void setLineCursorWidth(int width)
setLineCursorWidth
in interface EditorSettings
public boolean isAnimatedScrolling()
isAnimatedScrolling
in interface EditorSettings
public void setAnimatedScrolling(boolean val)
setAnimatedScrolling
in interface EditorSettings
public boolean isCamelWords()
isCamelWords
in interface EditorSettings
public void setCamelWords(boolean val)
setCamelWords
in interface EditorSettings
public void resetCamelWords()
EditorSettings
resetCamelWords
in interface EditorSettings
public boolean isBlinkCaret()
isBlinkCaret
in interface EditorSettings
public void setBlinkCaret(boolean val)
setBlinkCaret
in interface EditorSettings
public int getCaretBlinkPeriod()
getCaretBlinkPeriod
in interface EditorSettings
public void setCaretBlinkPeriod(int blinkPeriod)
setCaretBlinkPeriod
in interface EditorSettings
public boolean isDndEnabled()
isDndEnabled
in interface EditorSettings
public void setDndEnabled(boolean val)
setDndEnabled
in interface EditorSettings
public boolean isWheelFontChangeEnabled()
isWheelFontChangeEnabled
in interface EditorSettings
public void setWheelFontChangeEnabled(boolean val)
setWheelFontChangeEnabled
in interface EditorSettings
public boolean isMouseClickSelectionHonorsCamelWords()
isMouseClickSelectionHonorsCamelWords
in interface EditorSettings
public void setMouseClickSelectionHonorsCamelWords(boolean val)
setMouseClickSelectionHonorsCamelWords
in interface EditorSettings
public boolean isVariableInplaceRenameEnabled()
isVariableInplaceRenameEnabled
in interface EditorSettings
public void setVariableInplaceRenameEnabled(boolean val)
setVariableInplaceRenameEnabled
in interface EditorSettings
public boolean isRefrainFromScrolling()
isRefrainFromScrolling
in interface EditorSettings
public void setRefrainFromScrolling(boolean b)
setRefrainFromScrolling
in interface EditorSettings
public boolean isUseSoftWraps()
isUseSoftWraps
in interface EditorSettings
public void setUseSoftWraps(boolean use)
setUseSoftWraps
in interface EditorSettings
public boolean isAllSoftWrapsShown()
isAllSoftWrapsShown
in interface EditorSettings
public boolean isUseCustomSoftWrapIndent()
isUseCustomSoftWrapIndent
in interface EditorSettings
public void setUseCustomSoftWrapIndent(boolean useCustomSoftWrapIndent)
setUseCustomSoftWrapIndent
in interface EditorSettings
public int getCustomSoftWrapIndent()
getCustomSoftWrapIndent
in interface EditorSettings
public void setCustomSoftWrapIndent(int indent)
setCustomSoftWrapIndent
in interface EditorSettings
public boolean isAllowSingleLogicalLineFolding()
isAllowSingleLogicalLineFolding
in interface EditorSettings
EditorSettings.setAllowSingleLogicalLineFolding(boolean)
public void setAllowSingleLogicalLineFolding(boolean allow)
EditorSettings
FoldRegion.setGutterMarkEnabledForSingleLine(boolean)
.setAllowSingleLogicalLineFolding
in interface EditorSettings
public boolean isPreselectRename()
isPreselectRename
in interface EditorSettings
public void setPreselectRename(boolean val)
setPreselectRename
in interface EditorSettings
public boolean isShowIntentionBulb()
isShowIntentionBulb
in interface EditorSettings
public void setShowIntentionBulb(boolean show)
setShowIntentionBulb
in interface EditorSettings
public Language getLanguage()
public void setLanguageSupplier(java.util.function.Supplier<? extends Language> languageSupplier)
setLanguageSupplier
in interface EditorSettings