Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cursor position of SimpleEditor or text drag & drop
Cursor position of SimpleEditor or text drag & drop [message #453258] Tue, 25 July 2006 06:28 Go to next message
Eclipse UserFriend
Originally posted by: hald.icandy.de

Hi,

I've written a Editor extending SimpleEditor. Is there a possibility to
get the current text cursor position? Or even better, is it possible to
get the position in the text where I dropped something?
What I want to achieve is something like a tree view from where I could
drag text blocks to the editor.

Any help would be very much appreciated.

Best regards
Conny
Re: Cursor position of SimpleEditor or text drag & drop [message #453261 is a reply to message #453258] Tue, 25 July 2006 07:35 Go to previous messageGo to next message
Tom Eicher is currently offline Tom EicherFriend
Messages: 11
Registered: July 2009
Junior Member
Cornelius Hald wrote:
> I've written a Editor extending SimpleEditor. Is there a possibility to
> get the current text cursor position? Or even better, is it possible to
> get the position in the text where I dropped something?
> What I want to achieve is something like a tree view from where I could
> drag text blocks to the editor.

@see ITextEditor#getSelectionProvider()
Re: Cursor position of SimpleEditor or text drag & drop [message #453263 is a reply to message #453261] Tue, 25 July 2006 09:28 Go to previous message
Eclipse UserFriend
Originally posted by: hald.icandy.de

Tom Eicher wrote:
> Cornelius Hald wrote:
>> I've written a Editor extending SimpleEditor. Is there a possibility to
>> get the current text cursor position? Or even better, is it possible to
>> get the position in the text where I dropped something?
>> What I want to achieve is something like a tree view from where I could
>> drag text blocks to the editor.
>
> @see ITextEditor#getSelectionProvider()

Ok, thanks, it's working now!
Previous Topic:Product Build fails unable to parse empty org.eclipse.pde.build.container.feature/feature.xml file
Next Topic:Serializing & Deserializing Objects in RCP
Goto Forum:
  


Current Time: Fri Oct 04 03:29:02 GMT 2024

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

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

Back to the top