public class FoldRegionImpl extends RangeMarkerImpl implements FoldRegion
EMPTY_ARRAY
BY_START_OFFSET
BY_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, unregisterInTree
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDocument, getEndOffset, getStartOffset, isGreedyToLeft, isGreedyToRight, setGreedyToLeft, setGreedyToRight
getUserData, putUserData
public boolean isExpanded()
FoldRegion
isExpanded
in interface FoldRegion
public void setExpanded(boolean expanded)
FoldRegion
setExpanded
in interface FoldRegion
expanded
- true if the region should be expanded, false otherwise.public boolean isValid()
RangeMarker
isValid
in interface RangeMarker
isValid
in class RangeMarkerImpl
public java.lang.String getPlaceholderText()
FoldRegion
getPlaceholderText
in interface FoldRegion
public Editor getEditor()
getEditor
in interface FoldRegion
public FoldingGroup getGroup()
getGroup
in interface FoldRegion
public boolean shouldNeverExpand()
FoldRegion
true
, 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 FoldRegion
FoldingModelEx.createFoldRegion(int, int, String, FoldingGroup, boolean)
protected void changedUpdateImpl(DocumentEvent e)
changedUpdateImpl
in class RangeMarkerImpl
protected void onReTarget(DocumentEvent e)
onReTarget
in class RangeMarkerImpl
public void setInnerHighlightersMuted(boolean value)
FoldRegion
setInnerHighlightersMuted
in interface FoldRegion
RangeHighlighterEx.isVisibleIfFolded()
public boolean areInnerHighlightersMuted()
areInnerHighlightersMuted
in interface FoldRegion
FoldRegion.setInnerHighlightersMuted(boolean)
public void setGutterMarkEnabledForSingleLine(boolean value)
FoldRegion
setGutterMarkEnabledForSingleLine
in interface FoldRegion
FoldRegion.isGutterMarkEnabledForSingleLine()
,
EditorSettings.setAllowSingleLogicalLineFolding(boolean)
public boolean isGutterMarkEnabledForSingleLine()
isGutterMarkEnabledForSingleLine
in interface FoldRegion
FoldRegion.setGutterMarkEnabledForSingleLine(boolean)
public void setPlaceholderText(java.lang.String text)
FoldRegion
FoldingModel.runBatchFoldingOperation(Runnable)
, like any other
operations with fold regions.setPlaceholderText
in interface FoldRegion
public void dispose()
dispose
in interface RangeMarker
dispose
in class RangeMarkerImpl
public java.lang.String toString()
toString
in class RangeMarkerImpl