public class FoldRegionImpl extends RangeMarkerImpl implements FoldRegion
EMPTY_ARRAYBY_START_OFFSETBY_START_OFFSET_THEN_END_OFFSET| Modifier and Type | Method and Description |
|---|---|
boolean |
areInnerHighlightersMuted() |
protected void |
changedUpdateImpl(DocumentEvent e) |
void |
dispose() |
com.intellij.openapi.editor.impl.RangeMarkerWithGetterImpl |
get() |
Editor |
getEditor() |
FoldingGroup |
getGroup() |
java.lang.String |
getPlaceholderText()
Returns the placeholder text displayed when the fold region is collapsed.
|
boolean |
isExpanded()
Checks if the fold region is currently expanded.
|
boolean |
isGutterMarkEnabledForSingleLine() |
boolean |
isValid()
Checks if the marker has been invalidated by deleting the entire fragment of text
containing the marker.
|
protected void |
onReTarget(DocumentEvent e) |
void |
setExpanded(boolean expanded)
Expands or collapses the fold region.
|
void |
setGutterMarkEnabledForSingleLine(boolean value)
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 |
setInnerHighlightersMuted(boolean value)
If inner highlighters are muted for a collapsed fold region, there will be no visual indication
that region contains certain highlighters inside.
|
void |
setPlaceholderText(java.lang.String text)
Updates region's placeholder text.
|
boolean |
shouldNeverExpand()
If
true, this region is always in a collapsed state, FoldRegion.setExpanded(boolean) does nothing for it. |
java.lang.String |
toString() |
documentChanged, findRangeMarkerAfter, findRangeMarkerBefore, getDocument, getEndOffset, getId, getLayer, getStartOffset, intervalEnd, intervalStart, isGreedyToLeft, isGreedyToRight, registerInTree, setGreedyToLeft, setGreedyToRight, setValid, unregisterInTreechangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDocument, getEndOffset, getStartOffset, isGreedyToLeft, isGreedyToRight, setGreedyToLeft, setGreedyToRightgetUserData, putUserDatapublic boolean isExpanded()
FoldRegionisExpanded in interface FoldRegionpublic void setExpanded(boolean expanded)
FoldRegionsetExpanded in interface FoldRegionexpanded - true if the region should be expanded, false otherwise.public boolean isValid()
RangeMarkerisValid in interface RangeMarkerisValid in class RangeMarkerImplpublic java.lang.String getPlaceholderText()
FoldRegiongetPlaceholderText in interface FoldRegionpublic Editor getEditor()
getEditor in interface FoldRegionpublic FoldingGroup getGroup()
getGroup in interface FoldRegionpublic boolean shouldNeverExpand()
FoldRegiontrue, this region is always in a collapsed state, FoldRegion.setExpanded(boolean) does nothing for it. No marker is displayed
in gutter for such a region.shouldNeverExpand in interface FoldRegionFoldingModelEx.createFoldRegion(int, int, String, FoldingGroup, boolean)protected void changedUpdateImpl(DocumentEvent e)
changedUpdateImpl in class RangeMarkerImplprotected void onReTarget(DocumentEvent e)
onReTarget in class RangeMarkerImplpublic void setInnerHighlightersMuted(boolean value)
FoldRegionsetInnerHighlightersMuted in interface FoldRegionRangeHighlighterEx.isVisibleIfFolded()public boolean areInnerHighlightersMuted()
areInnerHighlightersMuted in interface FoldRegionFoldRegion.setInnerHighlightersMuted(boolean)public void setGutterMarkEnabledForSingleLine(boolean value)
FoldRegionsetGutterMarkEnabledForSingleLine in interface FoldRegionFoldRegion.isGutterMarkEnabledForSingleLine(),
EditorSettings.setAllowSingleLogicalLineFolding(boolean)public boolean isGutterMarkEnabledForSingleLine()
isGutterMarkEnabledForSingleLine in interface FoldRegionFoldRegion.setGutterMarkEnabledForSingleLine(boolean)public void setPlaceholderText(java.lang.String text)
FoldRegionFoldingModel.runBatchFoldingOperation(Runnable), like any other
operations with fold regions.setPlaceholderText in interface FoldRegionpublic void dispose()
dispose in interface RangeMarkerdispose in class RangeMarkerImplpublic java.lang.String toString()
toString in class RangeMarkerImpl