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 - Code folding moves cursor of screen
Summary: Code folding moves cursor of screen
Status: RESOLVED DUPLICATE of bug 170972
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P4 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 10:16 UTC by ieising
Modified: 2009-08-31 15:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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