thanks, got it working using the ITextSelection.

-robert

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@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

_______________________________________________
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

Reply via email to