This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The implementation of the foldings has changed completely. We no longer use Schlieman engine. Instead of that the HTML, CSS and JavaScript folds are provided by GSF and the JSP folds by separated JspFoldManager. Currently there are no language specific actions (collapse HTML/JSP comments etc.) in the Code Folds menu for none of these languages.
*** Issue 126030 has been marked as a duplicate of this issue. ***
At least we should have expand/collapse comments which is more or less generic for all languages. Since the html, css and javascript folding is handled by the GSF infrastructure and the only info currently possible to pass into the infrastructure from the language specific providers is the fold range, I cannot implement it on my side, so reassing to GSF. Some extension of the framework is welcomed here.
Basically we need to be able to specify fold type and fold display name like the original editor/folds api allows.
Reassigning to the right component, ruby,gsf
Moving from ruby/GSF to editor/CSL. Step one: assign to myself ;-)
Step 2: trying to make the owner not myself but the owner of the subcomponent.
I guess this will need some designing first since there are: 1) Code folding actions in context-menu->Code Folds 2) Code folding actions in shortcuts in options 3) Possible initial folding checkboxes in Options->Editor->General Marku, would it suffice to just allow to extend FoldType to allow "importance" (that would imply in which order the expand/collapse actions would appear in the "Code Folds" menu) and have FoldType.displayName() to have localized fold type name for the Code Folds menu and Options->Editor->General? IMHO we could possibly restrict that the extra actions would not have key shortcut assignable (would be just dynamically generated).
Marek, these are yours now ...
I am changing this to Code Folding category from CSL. I would like to avoid putting anything new into CSL and enhance the editor APIs instead (where it makes sense).
Marku, there are request, which lead to a per-language folding settings, which I think implies ability to define fold types. See issues #222981, #157709. Fold type name should be covered by those. There are general expand/collapse actions, and recursive expand action will probably become available in 7.4, which work on all folds, regardless of language. So the only feature not covered elsewhere is to allow SPI to specify fold's display name, such as HTML tag name - is it ?
> So the only feature not covered elsewhere is to allow SPI to specify fold's > display name, such as HTML tag name - is it ? This is what is needed the most.
OK, I've found RFE specifically for the missing item - see issue #142711. Thanks for explanation. Since everything in this issue is covered elsewhere, closing as WONTFIX
*** Bug 142711 has been marked as a duplicate of this bug. ***