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 - Provide a way to find out REAL fold changes
Summary: Provide a way to find out REAL fold changes
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 11:59 UTC by Miloslav Metelka
Modified: 2015-08-28 07:49 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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