TextSearch without EditorPart [message #462872] |
Thu, 01 February 2007 13:58  |
Eclipse User |
|
|
|
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 #463328 is a reply to message #462924] |
Thu, 08 February 2007 06:50  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03886 seconds