* Fires debug events in the event queue associated with the given event
* set, and clears the queue.
* @param set the set to fire events for
*/
private void fireEvents(EventSet set) {
DebugPlugin plugin = DebugPlugin.getDefault();
if (plugin != null) { // check that not in the process of shutting down
List<DebugEvent> list = null;
synchronized (fSetToQueue) {
list = fSetToQueue.remove(set);
}
if (list != null) {
DebugEvent[] events = list.toArray(new DebugEvent[list.size()]);
plugin.fireDebugEventSet(events);
}
}
}