public void removeEventListener(final PluginEventListener l) { initialiser.runPEVTask( new AERunnable() { public void runSupport() { event_listeners.remove(l); } }); }
public void firePluginEvent(final PluginEvent event) { initialiser.runPEVTask( new AERunnable() { public void runSupport() { firePluginEventSupport(event); } }); }
public void addEventListener(final PluginEventListener l) { initialiser.runPEVTask( new AERunnable() { public void runSupport() { List<PluginEvent> events = initialiser.getPEVHistory(); for (PluginEvent event : events) { try { l.handleEvent(event); } catch (Throwable e) { Debug.out(e); } } event_listeners.add(l); } }); }