Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] Getting cursor position in current editor

it seems that you can get the cursor position from current ISelection.if you does not select anything and the ISelection is instanceof ITextSelection,you can see ITextSelection.getLength() return 0,and ITextSelection.getOffset() is the cursor position.

Back to the top