|Re: What happens when user do a left-mouse click on Text Editor [message #305044 is a reply to message #305031]
||Thu, 22 June 2006 07:19
| Alex Le
Registered: July 2009
> Can anyone help me to find out the underlying methods that are called
> when user clicks on the Text Editor in the Java Perspective?
> How the Editor calculates the line numbers of that method where the
> caret position currently is? In the Vertical Ruler bar, the portion
> appears in Shade.
Oh, boy...That's a lot of info...I would suggest start playing with the
JFace text framework. What you can do is create a plugin using of the
PDE template to generate an simple XML editor and start stepping into
the code. Read the Eclipse programmer's guide on editors.
To answer your questions at higher level. Use IDocument to calculate
where the current carret is. The vertical ruler is one of the things
JFace text offers. The shading is done by highlighting the text or by
Powered by FUDForum
. Page generated in 0.02324 seconds