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 14:29 Go to next message
Missing name Mising name is currently offline Missing name Mising name
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 16:14]

Report message to a moderator

Re: Position cursor in Editor [message #527764 is a reply to message #527614] Fri, 16 April 2010 08:12 Go to previous message
Paul Webster is currently offline Paul Webster
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 Jul 29 14:59:17 EDT 2014

Powered by FUDForum. Page generated in 0.04706 seconds