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 205564 - "Collapse by Default" should be done before displaying the file content
Summary: "Collapse by Default" should be done before displaying the file content
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 14:25 UTC by hupfdule
Modified: 2016-08-05 11:57 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hupfdule 2011-11-25 14:25:15 UTC
When activating code folding, it is possible to set some default collapsings, for example for Imports and the Initial Comment.
However, when this is done and a file is opened, it will be opened with everything expanded and only then (after displaying it) the selected blocks are collapsed. 

This is very disturbing. Especially since it is possible to set the cursor, select some text or scroll in the file, which is then being disrupted by the folding.

It would be much better if the folding was applied before displaying the file.
Comment 1 milanka 2016-08-05 11:57:00 UTC
Time to fold Java imports seems to have increased between version 8.1 and Dev Build 201607270002. I don't have time to select anything, but I have started to read the code when the jump occurs. Also the cursor can move outside viewable area, which is annoying after navigation.

I am not sure if delaying of displaying the file is the optimal solution. Folding should just occur faster.