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 217304

Summary: API Review: Added preferred line number to FileProvider.Context
Product: utilities Reporter: Tomas Zezula <tzezula>
Component: Jump ToAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: normal Keywords: API, API_REVIEW_FAST
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 217050    
Attachments: Patch

Description Tomas Zezula 2012-08-23 13:15:53 UTC
Created attachment 123465 [details]
Patch

Added FileProvider.Context.getLineNumber() method to return the preferred line on which the document should be opened. The FileProviders which are using a custom FileDescription should use this method to open the selected file on preferred line. The FileProviders which are using FileObjects are handled automatically and the document opens on preferred line.
Comment 1 Jaroslav Tulach 2012-08-24 12:25:18 UTC
Y01 Why not test other value than -1?
Comment 2 Tomas Zezula 2012-08-24 12:40:11 UTC
The line number has no effect on the test. The test does not test correct implementation of LineCookie it tests that the FileObject for given file name pattern is found.
Comment 3 Tomas Zezula 2012-09-05 07:13:13 UTC
Fixed jet-main 1b5cfdcd1598