Bug 499807 - [Open Resource] Add ability to specify line number in search text
Summary: [Open Resource] Add ability to specify line number in search text
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2016-08-17 05:05 EDT by Yauheniy Ratkevich CLA
Modified: 2019-04-23 15:22 EDT (History)
6 users (show)

See Also:


Attachments
How should it be (10.76 KB, image/png)
2016-08-17 05:06 EDT, Yauheniy Ratkevich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yauheniy Ratkevich CLA 2016-08-17 05:05:22 EDT
-- Configuration Details --
Product: Eclipse 4.6.0.20160613-1800 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.12.0.v20160606-1100
Comment 1 Yauheniy Ratkevich CLA 2016-08-17 05:06:04 EDT
Created attachment 263629 [details]
How should it be
Comment 2 Yauheniy Ratkevich CLA 2016-08-17 05:08:40 EDT
See in the attachments what I mean.
Just to combine Ctrl+Shift+R (Open resource) with Ctrl+L (Go to line).

Make possible to search by such expression: "SomeFile.java:108:21". It would be VERY HELPFUL during working with a stacktrace (here we may face with LOTS OF such expressions).
Comment 3 Brian de Alwis CLA 2016-08-22 12:50:52 EDT
Marking as HELPWANTED.  This would be a nifty feature.
Comment 4 Michael Keppler CLA 2018-04-03 10:59:26 EDT
The feature as such is already there, but not in the Open Resource dialog. If you copy "StructuredSelection.java:100" into the clipboard and then use Navigate>Open from clipboard, then you get exactly what you want (assuming StructuredSelection.java is in your local workspace).

However, I would also vote for having the functionality in Open Type instead.
Comment 5 Lars Vogel CLA 2018-04-03 11:05:46 EDT
(In reply to Michael Keppler from comment #4)
> However, I would also vote for having the functionality in Open Type instead.

That would be another bug report. Please open a new one (and deliver a patch if you think it is important).
Comment 6 Michael Keppler CLA 2018-04-03 11:07:36 EDT
Sorry Lars, I meant "Open Resource" as already requested in this bug. No additional request from my side.
Comment 7 Lars Vogel CLA 2019-04-23 03:24:43 EDT
Bug 305336 implemented that for opening a file from the command line.