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 - API Review: Added preferred line number to FileProvider.Context
Summary: API Review: Added preferred line number to FileProvider.Context
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Jump To (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: apireviews
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks: 217050
  Show dependency tree
 
Reported: 2012-08-23 13:15 UTC by Tomas Zezula
Modified: 2012-09-05 07:13 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Patch (18.33 KB, application/octet-stream)
2012-08-23 13:15 UTC, Tomas Zezula
Details

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