Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #459: Add API to hide expanded folds except on hover, and do so w…
…hen the fold style is 'modern'
- Loading branch information
1 parent
81232b3
commit c4cf27d
Showing
6 changed files
with
203 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/ExpandedFoldRenderStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* This library is distributed under a modified BSD license. See the included | ||
* LICENSE file for details. | ||
*/ | ||
package org.fife.ui.rtextarea; | ||
|
||
|
||
/** | ||
* The strategy to use when rendering expanded folds in the gutter. | ||
* | ||
* @author Robert Futrell | ||
* @version 1.0 | ||
*/ | ||
public enum ExpandedFoldRenderStrategy { | ||
|
||
/** | ||
* Always render expanded folds. | ||
*/ | ||
ALWAYS, | ||
|
||
/** | ||
* Only render expanded folds when the mouse is hovered over the gutter. | ||
*/ | ||
ON_HOVER | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters