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.

Bug 254554

Summary: Provide a way to find out REAL fold changes
Product: xml Reporter: Miloslav Metelka <mmetelka>
Component: Text-EditAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:

Description Miloslav Metelka 2015-08-20 11:59:10 UTC
Many languages e.g. XML do fold changes in a way
1) remove all existing folds
2) add all fresh new folds
typically after a reparse after certain delay.
This fold change however triggers e.g. a rebuild of paragraph views of the view hierarchy spanning first to last folds i.e. typically almost the whole document.

I could distil the real changes in the FoldViewFactory but imho this information would be more useful in the FoldHierarchyEvent or somewhere in a Fold API so that it could be inspected by other Fold API clients too.
Comment 1 Svata Dedic 2015-08-20 18:59:31 UTC
This "feature" in XML is known for a long time, however unattended. Code Folding already contains an API that 'updates' folds - matching folds using structure, position and kind. 

Did you observe the bad behaviour on a language other than XML - which one ? Java and CSL-based languages (HTML, XHTML, JS, PHP) should be OK alreayd