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 171149

Summary: Code folding moves cursor of screen
Product: editor Reporter: ieising <ieising>
Component: Code foldingAssignee: mslama <mslama>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: hmichel
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

Description ieising 2009-08-31 10:16:18 UTC
I have setup NB such that the import section and all JavaDoc is collapsed by default when opening a file. Why? Because
it clutters my screen and I don't find it helpful to see all that code and documentation.
Since the IDE is doing such a great job in managing my imports and the code-completion shows all JavaDoc when I need it,
I don't find it beneficiary to have it in plain sight when I don't need it.

But here's the catch. NB doesn't update the 'focus' of a file when I open it. What I mean is that when I CTRL-Click
something in an editor and the source file is not yet opened, NB will open the file, jump to the correct location, make
sure that the location is in the visible area on screen and then collapse all editor folds... moving the location of
screen. And I need to scroll window to show what I want to see.

Iwan
Comment 1 Michel Graciano 2009-08-31 15:15:59 UTC
One little workaround is just move cursor by keyboard. This will force editor to recalculate the focus.

Thanks for the report.
Comment 2 Vitezslav Stejskal 2009-08-31 15:29:37 UTC

*** This issue has been marked as a duplicate of 170972 ***