public interface EditorListener extends java.util.EventListener
EditorListenerinterface should be implemented by clients that are interested in receiving notifications about
Editorinstances being opened, activated, deactivated, or closed in the IDE.
This allows clients to attach to or detach from the given Editor for the purpose of providing extra functionality. For example, the debugger may use this for determining when a Code Editor is opened so that it can display the breakpoint icon locations properly.
Clients should register listeners with the EditorManager singleton
instance. When an editor is opened, the
method will be called. When an editor is about to be closed, the
editorClosed() method will be called.
|Modifier and Type||Method and Description|
Notify listeners that an existing Editor has been activated.
Notify listeners that an existing Editor is being closed.
Notify listeners that an existing Editor listener is de-activated.
Notify listeners that a new Editor has been opened.
void editorOpened(Editor editor)
editor- the editor instance that was opened
void editorActivated(Editor editor)
editor- the editor instance that was activated
void editorDeactivated(Editor editor)
editor- the editor instance that was deactivated
void editorClosed(Editor editor)
close()method is called.
editor- the editor instance that was closed