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

Bug 426406

Summary: We should expose getLineStart to clients
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: EditorAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon, Silenio_Quarti
Version: unspecified   
Target Milestone: 5.0 M2   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 426399    

Description Michael Rennie CLA 2014-01-22 16:27:40 EST
There are thrid party tools that return objects making use of start offsets and column numbers. To be able to compute ranges effectively, we should expose the getLineStart function from the text model into the editor context.

Bug 426399 is good example use: the Esprima parser returns error objects like:

{offset, column, linenumber, msg}

so to be able to compute the offending range in the source we would need to know the offfset the column is talking about - which we could easily do with the line start offset.