Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] How to set the current caret position by lineNo and column

Hello!
 
I am open a text editor(TextEditor) in the workbench, and keep the IEditorInput reference.
How can I set the current caret position for that text editor?
I just have a lineNo and column information, no the position(offset) of the document.
 
Are there some lineNo/Column-position convert API provided by text editor?
 
Regards,
  Yau
 

Back to the top