Code example for EventBus

0
 
    private static EventBus bus;
 
    private static EventBus bus() {
        if (bus == null) {
            bus = new EventBus("erlide");
            bus.register(new ErlideEventBus());
        } 
        return bus;
    } 
 
    public static void post(final Object event) { 
        bus().post(event);
    } 
 
    public static void register(final Object listener) { 
        bus().register(listener);
    } 
 
    public static void unregister(final Object listener) { 
Connect your IDE to all the code out there  Get Codota for Java