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")) {
        ...
    }
}

6 comments
Comment actions Permalink

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?

0
Comment actions Permalink

> What are you trying to achieve?
I want to get the editor object contained in "Event Log" when that editor was created.

0
Comment actions Permalink

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?

0
Comment actions Permalink

>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?

0
Comment actions Permalink

As far as I can see that's not possible; the APIs you would need to call to accomplish this are not public.

0
Comment actions Permalink

Dmitry

Thank you very much for your help
I give up implementing this functionality

0

Please sign in to leave a comment.