Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » TextSearch without EditorPart
TextSearch without EditorPart [message #462872] Thu, 01 February 2007 18:58 Go to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Hi,
i realized my text editor with a sourceviewer instead of an editor part.
I will switch to editor in the next semester, but for now, i want to
realize a simple text search within the sourceviewer.

Is there a plugin, which i can use or must i implement it be myself?

Thx
Florian
Re: TextSearch without EditorPart [message #462915 is a reply to message #462872] Fri, 02 February 2007 10:13 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Florian Wendland wrote:

> Hi,
> i realized my text editor with a sourceviewer instead of an editor
> part. I will switch to editor in the next semester, but for now, i
> want to realize a simple text search within the sourceviewer.

see ITextViewer#getFindReplaceTarget()

Dani

>
> Is there a plugin, which i can use or must i implement it be myself?
>
> Thx
> Florian
Re: TextSearch without EditorPart [message #462924 is a reply to message #462915] Fri, 02 February 2007 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: florianwendland.freenet.de

Thanks Daniel, I see...
but now I want to reuse the Find/Replace-Dialog and therefor, I have
added and registered the ActionFactory.FIND-Action to the Workbench. It
is now all time disabled, event if I opened the View with the SourceViewer.

I think I have to implement an special interface within the view (like
ISaveablePart for the ActionFactory.SAVE-Action), but I didn't find the
correct Interface in the api. I have used several, but it doesn't work.

Could someone give me a hint?

Thx
Re: TextSearch without EditorPart [message #463328 is a reply to message #462924] Thu, 08 February 2007 11:50 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Florian Wendland wrote:

> Thanks Daniel, I see...
> but now I want to reuse the Find/Replace-Dialog and therefor, I have
> added and registered the ActionFactory.FIND-Action to the Workbench.
> It is now all time disabled, event if I opened the View with the
> SourceViewer.
>
> I think I have to implement an special interface within the view (like
> ISaveablePart for the ActionFactory.SAVE-Action), but I didn't find
> the correct Interface in the api. I have used several, but it doesn't
> work.
>
> Could someone give me a hint?

Sure. Simply create and register the FindReplaceAction. This takes an
IFindReplaceTarget as argument. Note that this only works in 3.3.

Dani

>
> Thx
Previous Topic:tutorial "how to deliver products"
Next Topic:How to enable the FIND-Action
Goto Forum:
  


Current Time: Fri Sep 20 11:52:39 GMT 2024

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

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

Back to the top