Skip to content

Commit a9e8a35

Browse files
committed
Add N&N entry for changes in enhanced and custom folding regions
Contributes to eclipse-jdt/eclipse.jdt.ui#2860
1 parent cf76e2d commit a9e8a35

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

news/4.40/jdt.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,30 @@ A special thanks to everyone who [contributed to JDT](acknowledgements.md#java-d
1616
---
1717
## Java Editor
1818
-->
19+
## Java Editor
20+
21+
### Improvements for Enhanced Folding and Custom Folding Regions
22+
<details>
23+
<summary>Contributors</summary>
24+
25+
- [Federico Jeanne](https://github.com/fedejeanne)
26+
- [Daniel Schmid](https://github.com/danthe1st)
27+
</details>
28+
29+
30+
#### Visible Improvements
31+
32+
Several improvements have been made to the enhanced folding and the custom folding regions features introduced in previous releases, including:
33+
- The performance of the enhanced folding mechanism has been improved, especially for large files with many foldable elements.
34+
- Folding regions now include the entire body of control statements, including the opening and closing braces, for a more intuitive folding experience.
35+
- Minor glitches in the folding behavior have been fixed.
36+
- The complete list of addressed issues can be found in the following PR: https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/2860
37+
38+
#### API/Contract clarifications
1939

40+
With these changes, custom subclasses of `DefaultJavaFoldingStructureProvider` will also contain the enhanced and the custom folding regions in their results
41+
if the appropriate preferences have been activated.
42+
If this is not desired by the subclass, the regions will have to be explicitly removed from the result.
2043
<!--
2144
---
2245
## Java Views and Dialogs

0 commit comments

Comments
 (0)