public final class EditorSettingsExternalizable extends java.lang.Object implements PersistentStateComponent<EditorSettingsExternalizable.OptionSet>
Modifier and Type | Class and Description |
---|---|
static class |
EditorSettingsExternalizable.OptionSet |
static class |
EditorSettingsExternalizable.OsSpecificState |
static interface |
EditorSettingsExternalizable.StripTrailingSpaces |
Modifier and Type | Field and Description |
---|---|
static UINumericRange |
BLINKING_RANGE |
static java.lang.String |
PROP_VIRTUAL_SPACE |
static java.lang.String |
STRIP_TRAILING_SPACES_CHANGED |
static java.lang.String |
STRIP_TRAILING_SPACES_NONE |
static java.lang.String |
STRIP_TRAILING_SPACES_WHOLE |
static UINumericRange |
TOOLTIPS_DELAY_RANGE |
Constructor and Description |
---|
EditorSettingsExternalizable() |
EditorSettingsExternalizable(EditorSettingsExternalizable.OsSpecificState state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String PROP_VIRTUAL_SPACE
public static final UINumericRange BLINKING_RANGE
public static final UINumericRange TOOLTIPS_DELAY_RANGE
public static final java.lang.String STRIP_TRAILING_SPACES_NONE
public static final java.lang.String STRIP_TRAILING_SPACES_CHANGED
public static final java.lang.String STRIP_TRAILING_SPACES_WHOLE
public EditorSettingsExternalizable()
public EditorSettingsExternalizable(EditorSettingsExternalizable.OsSpecificState state)
public static EditorSettingsExternalizable getInstance()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public EditorSettingsExternalizable.OptionSet getState()
getState
in interface PersistentStateComponent<EditorSettingsExternalizable.OptionSet>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(EditorSettingsExternalizable.OptionSet state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<EditorSettingsExternalizable.OptionSet>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public EditorSettingsExternalizable.OptionSet getOptions()
public boolean isRightMarginShown()
public void setRightMarginShown(boolean val)
public boolean isLineNumbersShown()
public void setLineNumbersShown(boolean val)
public boolean areGutterIconsShown()
public void setGutterIconsShown(boolean val)
@Deprecated public int getAdditionalLinesCount()
@Deprecated public void setAdditionalLinesCount(int additionalLinesCount)
public boolean isFoldingOutlineShown()
public void setFoldingOutlineShown(boolean val)
public boolean isBreadcrumbsAbove()
true
if breadcrumbs should be shown above the editor, false
otherwisepublic boolean setBreadcrumbsAbove(boolean value)
value
- true
if breadcrumbs should be shown above the editor, false
otherwisetrue
if an option was modified, false
otherwisepublic boolean isBreadcrumbsShown()
true
if breadcrumbs should be shown, false
otherwisepublic boolean setBreadcrumbsShown(boolean value)
value
- true
if breadcrumbs should be shown, false
otherwisetrue
if an option was modified, false
otherwisepublic boolean isBreadcrumbsShownFor(java.lang.String languageID)
languageID
- the language identifier to configuretrue
if breadcrumbs should be shown for the specified language, false
otherwisepublic void resetDefaultBreadcrumbVisibility()
public boolean hasBreadcrumbSettings(java.lang.String languageID)
public boolean setBreadcrumbsShownFor(java.lang.String languageID, boolean value)
languageID
- the language identifier to configurevalue
- true
if breadcrumbs should be shown for the specified language, false
otherwisetrue
if an option was modified, false
otherwisepublic boolean isDocCommentRenderingEnabled()
public void setDocCommentRenderingEnabled(boolean value)
public boolean isBlockCursor()
public void setBlockCursor(boolean val)
public boolean isCaretRowShown()
public int getBlockIndent()
public void setBlockIndent(int blockIndent)
public boolean isSmartHome()
public void setSmartHome(boolean val)
public boolean isUseSoftWraps()
public boolean isUseSoftWraps(SoftWrapAppliancePlaces place)
public void setUseSoftWraps(boolean use)
public void setUseSoftWraps(boolean use, SoftWrapAppliancePlaces place)
public boolean isUseCustomSoftWrapIndent()
public void setUseCustomSoftWrapIndent(boolean use)
public int getCustomSoftWrapIndent()
public void setCustomSoftWrapIndent(int indent)
public boolean isVirtualSpace()
public void setVirtualSpace(boolean val)
public boolean isCaretInsideTabs()
public void setCaretInsideTabs(boolean val)
public boolean isBlinkCaret()
public void setBlinkCaret(boolean blinkCaret)
public int getBlinkPeriod()
public void setBlinkPeriod(int blinkInterval)
public boolean isEnsureNewLineAtEOF()
public void setEnsureNewLineAtEOF(boolean ensure)
public java.lang.String getStripTrailingSpaces()
public void setStripTrailingSpaces(java.lang.String stripTrailingSpaces)
public boolean isShowQuickDocOnMouseOverElement()
public void setShowQuickDocOnMouseOverElement(boolean show)
public boolean isShowInspectionWidget()
public void setShowInspectionWidget(boolean show)
@Deprecated public int getQuickDocOnMouseOverElementDelayMillis()
getTooltipsDelay()
insteadpublic int getTooltipsDelay()
public void setTooltipsDelay(int delay)
public boolean isShowIntentionBulb()
public void setShowIntentionBulb(boolean show)
public boolean isRefrainFromScrolling()
public void setRefrainFromScrolling(boolean b)
public boolean isShowNotificationAfterReformat()
public void setShowNotificationAfterReformat(boolean b)
public boolean isShowNotificationAfterOptimizeImports()
public void setShowNotificationAfterOptimizeImports(boolean b)
public boolean isWhitespacesShown()
public void setWhitespacesShown(boolean val)
public boolean isLeadingWhitespacesShown()
public void setLeadingWhitespacesShown(boolean val)
public boolean isInnerWhitespacesShown()
public void setInnerWhitespacesShown(boolean val)
public boolean isTrailingWhitespacesShown()
public void setTrailingWhitespacesShown(boolean val)
public boolean isAllSoftWrapsShown()
public void setAllSoftwrapsShown(boolean val)
public boolean isIndentGuidesShown()
public void setIndentGuidesShown(boolean val)
public boolean isFocusMode()
public void setFocusMode(boolean val)
public boolean isSmoothScrolling()
public void setSmoothScrolling(boolean val)
public boolean isCamelWords()
public void setCamelWords(boolean val)
public boolean isAdditionalPageAtBottom()
public void setAdditionalPageAtBottom(boolean val)
public boolean isDndEnabled()
public void setDndEnabled(boolean val)
public boolean isWheelFontChangeEnabled()
public void setWheelFontChangeEnabled(boolean val)
public boolean isMouseClickSelectionHonorsCamelWords()
public void setMouseClickSelectionHonorsCamelWords(boolean val)
public boolean isVariableInplaceRenameEnabled()
public void setVariableInplaceRenameEnabled(boolean val)
public boolean isPreselectRename()
public void setPreselectRename(boolean val)
public boolean isShowInlineLocalDialog()
public void setShowInlineLocalDialog(boolean val)
public boolean addCaretsOnDoubleCtrl()
public void setAddCaretsOnDoubleCtrl(boolean val)
public BidiTextDirection getBidiTextDirection()
public void setBidiTextDirection(BidiTextDirection direction)
@Deprecated public boolean isShowParameterNameHints()
com.intellij.codeInsight.hints.HintUtilsKt#isParameterHintsEnabledForLanguage(Language)
instead@Deprecated public void setShowParameterNameHints(boolean value)
com.intellij.codeInsight.hints.HintUtilsKt#setShowParameterHintsForLanguage(boolean, Language)
insteadpublic boolean isKeepTrailingSpacesOnCaretLine()
public void setKeepTrailingSpacesOnCaretLine(boolean keep)
public java.lang.String getSoftWrapFileMasks()
public void setSoftWrapFileMasks(java.lang.String value)
public CaretStopOptions getCaretStopOptions()
public void setCaretStopOptions(CaretStopOptions options)