Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.editor
Interface EditorListener  view EditorListener download EditorListener.java

All Superinterfaces:
java.util.EventListener

public interface EditorListener
extends java.util.EventListener

The EditorListener interface should be implemented by clients that are interested in receiving notifications about Editor instances 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 opened() method will be called. When an editor is about to be closed, the closed() method will be called.


Method Summary
 void activated(EditorEvent event)
          Notify listeners that an existing Editor has been activated.
 void closed(EditorEvent event)
          Notify listeners that an existing Editor is being closed.
 void deactivated(EditorEvent event)
          Notify listeners that an existing Editor listener is de-activated.
 void opened(EditorEvent event)
          Notify listeners that a new Editor has been opened.
 

Method Detail

opened

public void opened(EditorEvent event)
Notify listeners that a new Editor has been opened. This method is called after an Editor is opened, and its open() method called.


activated

public void activated(EditorEvent event)
Notify listeners that an existing Editor has been activated. This method is called after an Editor is activated, and its activate() method called.


deactivated

public void deactivated(EditorEvent event)
Notify listeners that an existing Editor listener is de-activated. This methodis called after an Editor is deactivated, and its deactivate() method called.


closed

public void closed(EditorEvent event)
Notify listeners that an existing Editor is being closed. This method is called right before an Editor's close() method is called.