Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Position cursor in Editor
Position cursor in Editor [message #527614] Thu, 15 April 2010 14:29 Go to next message
Eclipse UserFriend
Hello.

how do I get the position of cursor of editor in edit Area?

for example I make a file.java and the position of cursor is file 3 ans columns 4, I need those 3 and 4.

what do i use class?

Thanks a lot


Jose

[Updated on: Thu, 15 April 2010 16:14] by Moderator

Re: Position cursor in Editor [message #527764 is a reply to message #527614] Fri, 16 April 2010 08:12 Go to previous message
Eclipse UserFriend
If the EditorPart is an org.eclipse.ui.texteditor.ITextEditor then you
can use that interface. Check out the javadoc.

Also see http://wiki.eclipse.org/The_Official_Eclipse_FAQs#Text_Edito rs
for places to start.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:MultiPageEditorPart
Next Topic:Tabs in texteditor do not indent
Goto Forum:
  


Current Time: Wed Mar 12 00:36:38 EDT 2025

Powered by FUDForum. Page generated in 0.02880 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top