Chapter 20. EditBus Classes

Table of Contents

This section describes the EditBus class itself, as well as the abstract EBMessage class and all classes that derive from it. See the section called " The DockableWindowManager" for an overview of how the EditBus works.

Class EditBus

This class provides a messaging system for all components that implement the EBComponent interface, including View and EBPlugin objects.

  • public static void addToBus(EBComponent component);

  • public static void removeFromBus(EBComponent component);

    Adds or removes a subscribing component.

  • public EBComponent[] getComponents();

    Returns an array of all components connected to the EditBus.

  • public void send(EBMessage message);

    Send the specified message to all subscribers on the EditBus.