Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-text-dev] Caret Position in TextEditor

Hi Dani,

Sorry, I'm not sure what you mean by "From where?".

I'm creating a plugin. I have a RAD Dialog that will allow user to generate method calls that I will add to the active Editor window at the current cursor position.

I have an instance of the  org.eclipse.ui.editors.text.TextEditor but I can't find how to get and update the caret position.

For an org.eclipse.swt.custom.StyledText I can use getCaretOffset().

And for an org.eclipse.swt.widgets.Text I can use getCaretPosition().

But I don't see any way to get it for a TextEditor.

Thanks,

Bill

 

 

 

  • From: Daniel Megert <daniel_megert@xxxxxxxxxx>
  • Date: Wed, 4 Jun 2003 09:11:03 +0200
  • Delivered-to: platform-text-dev@xxxxxxxxxxx


From where?

Dani


                                                                           
             "Bill Albert"                                                 
             <bill_albert@hotm                                             
             ail.com>                                                   To 
             Sent by:                  platform-text-dev@xxxxxxxxxxx       
             platform-text-dev                                          cc 
             -admin@xxxxxxxxxx                                             
             g                                                     Subject 
                                       [platform-text-dev] Caret Position  
                                       in TextEditor                       
             04.06.2003 01:05                                              
                                                                           
                                                                           
             Please respond to                                             
             platform-text-dev                                             
               @eclipse.org                                                
                                                                           
                                                                           




Anyone know how to find the current caret position in a
org.eclipse.ui.editors.text.TextEditor ?

Thanks!
Bill


STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

Back to the top