How do I access Find window from my plugin

I have written a plugin based on the Image Viewer example.

Thisshows how to add a structure panel using a StructureBuilder and Structure View class so you can display your own structure when one ofthe plugin panels is selected.

How can I do this with the FIND window so my own components appear there?

MArkee

8 comments

Hello mark,

I have written a plugin based on the Image Viewer example.

Thisshows how to add a structure panel using a StructureBuilder and
Structure View class so you can display your own structure when one
ofthe plugin panels is selected.

How can I do this with the FIND window so my own components appear
there?


The Find window doesn't support displaying arbitrary custom components. To
show views similar to the views already displayed there, you can use the
UsageViewManager class and related APIs.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Thanks for the info.

Is there any examples showing how to do this?

MArkee

0

Hello mark,

Is there any examples showing how to do this?


http://www.google.com/codesearch?hl=en&q=UsageViewManagershow:EFTocMVuiAY:zkAmJaeEYJI:PhNmAYUmEWA&sa=N&cd=2&ct=rc&cs_p=http://tracklink.googlecode.com/svn&cs_f=trunk/modules/tracklink/src/com/almworks/tracklink/findusages/FindUtils.java#a0

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Thanks for the link.

If I want my own custom window can I add one and manage it through toolWindow

0

Hello mark,

Thanks for the link.

If I want my own custom window can I add one and manage it through
toolWindow


Yes, of course. You can find many examples of using the toolwindow API in
the plugin development kit.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

I have setup a ToolWindow and want to update it depending on whether my EditorUI window is displayed on not (if it is I put in my own display, if not, I remove it).

Is there an easy way to monitor this. I have been looking at adding a combination of Listeners on various components but without success.

MArkee

0

Hello mark,

I have setup a ToolWindow and want to update it depending on whether
my EditorUI window is displayed on not (if it is I put in my own
display, if not, I remove it).

Is there an easy way to monitor this. I have been looking at adding a
combination of Listeners on various components but without success.


If I understand correctly, what you need is to track events from FileEditorManagerListener.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Thanks for the reply.

I have a PDF display plugin for IDEA and am updating it to add search capabilities to it.

I have the PDF view in my EditorUI (based on ImageViewer) and I have added a ToolWindow (PDF_SEARCH) at the bottom. When my EditorUI is visible, I want to display a JPanel in PDF_SEARCH with my Search functions and remove it when the window disappears.

I am trying to make sure that PDF_SEARCH shows the correct contect so I remove/add depending on whether my EditorUI is visible.

Does this makes sense? Is there any examples out there? I've looked at the ToolWindow example in the plugins but it does not go into this much detail.

MArkee

0

Please sign in to leave a comment.