Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353437

Summary: Allow line:column in the file URLs
Product: [ECD] Orion Reporter: Gabriel Petrovay <gabipetrovay>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 0.2   
Target Milestone: 0.3 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Gabriel Petrovay CLA 2011-07-29 12:37:05 EDT
If a line:column patter or similar would be allowed in a file URLs has many advantages:
- allows passing the exact location with a file URL that tells the editor where to scroll in a file
- this allows references to problems in files:
  - a future problem view
  - a future "debug error to code" navigation
  - etc.

Just please give me some hints/pointers where to start and I can look on this as a warm-up.

Thanks!
Comment 1 Mark Macdonald CLA 2011-08-03 11:32:46 EDT
We have something like this already: try opening a file in the editor and adding
> ?line=15
or 
> ?line=15&char=3

to the end of the address.
Comment 2 Mark Macdonald CLA 2011-08-03 11:36:47 EDT
(In reply to comment #1)
> > ?line=15&char=3

Hm, "line" works but "char" is broken. I will fix that.
Comment 4 Mark Macdonald CLA 2011-08-30 15:46:07 EDT
See Comment #3