How to get Editor's name in Tool Window
Hi
I can detect that an editor in Tool Window was created.
how to get created Editor's name (e.g. "Event Log", "Clipboard vs Editor", and so on).
public void editorCreated(EditorFactoryEvent event) {
String name; // = do something
if (name.equals("Event Log")) {
...
}
}
Please sign in to leave a comment.
There is no such concept as "the name of an editor". "Event Log" is the name of the toolwindow containing the editor, not the name of the editor itself.
What are you trying to achieve?
> What are you trying to achieve?
I want to get the editor object contained in "Event Log" when that editor was created.
This is unfortunately not possible. When the editor gets created, there is no way for the listener to identify how it is going to be used, and whether it will become the editor in the event log toolwindow.
What is the functionality that you're trying to implement?
>What is the functionality that you're trying to implement?
I try to set a background image into the event log toolwindow.
Can I get the Editor object in event log toolwindow?
As far as I can see that's not possible; the APIs you would need to call to accomplish this are not public.
Dmitry
Thank you very much for your help
I give up implementing this functionality