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 228482

Summary: Position.scrollTo() suboptimal
Product: platform Reporter: Milos Kleint <mkleint>
Component: Output WindowAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED FIXED    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Milos Kleint 2013-04-11 13:23:28 UTC
when using the IO selection api's Position class I typically in maven build  remember start or end of a given section. meaning the text that is interesting is typically a few lines after or before the Position's value. When calling switchTo() method (or similar name, cannot recall now) the output implementation typically satisfies itself with showing just the line of the position which effectively ends up being either the first or the last line of the output.

Ideally this would position the line someplace in the middle of the view (or at least allow a buffer of 5-10 lines above and below to be shown as well) and place the cursor at the right position.
Comment 1 Milos Kleint 2013-07-02 05:32:23 UTC
*** Bug 232107 has been marked as a duplicate of this bug. ***
Comment 2 Jaroslav Havlin 2013-08-26 14:45:19 UTC
http://hg.netbeans.org/core-main/rev/3f871cd6963e
Fixed. Please verify.