Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


javax.ide.editor
Interface EditorListener

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.

See Also:
Editor, EditorManager, EditorEvent

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

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.
Parameters:
event - the EditorEvent object.

activated

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.
Parameters:
event - the EditorEvent object.

deactivated

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.
Parameters:
event - the EditorEvent object.

closed

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.
Parameters:
event - the EditorEvent object.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.