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

thanks, got it working using the ITextSelection.


Am 11/19/09 2:04 AM, schrieb 赵忠伟:
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.
_______________________________________________ pdt-dev mailing list pdt-dev@xxxxxxxxxxx

Back to the top