Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Position cursor in Editor
Position cursor in Editor [message #527614] Thu, 15 April 2010 18:29 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 100
Registered: March 2010
Senior Member
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 20:14]

Report message to a moderator

Re: Position cursor in Editor [message #527764 is a reply to message #527614] Fri, 16 April 2010 12:12 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Tue Apr 16 21:31:06 GMT 2024

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

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

Back to the top