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 130489 - Code folding API/SPI support
Summary: Code folding API/SPI support
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Miloslav Metelka
Keywords: API
Depends on:
Blocks: 130488
  Show dependency tree
Reported: 2008-03-19 10:11 UTC by Miloslav Metelka
Modified: 2010-09-23 07:59 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2008-03-19 10:11:52 UTC
The support should allow:
- When folds are refreshed e.g. as a result of document reparsing there should be support for matching the
expanded/collapsed state to the new folds if they are within the same position bounds in the document.
- FoldManager.removeEmptyNotify() and FM.removeDamagedNotify(): the fold provider is likely not interested in this very
much. There should be an automatic handling of these methods.
Comment 1 Jan Lahoda 2008-03-19 10:18:09 UTC
I would add:
-simpler locking: to my knowledge, adding the folds into the hierarchy currently needs to run in AWT under 3 different
"locks" (document read lock, operation.getHierarchy().lock(), operation.openTransaction())
-allow "push" model