if (firstListener) { for (Iterator i = queuedMessages.iterator(); i.hasNext();) { try { IStatus recordedMessage = (IStatus) i.next(); listener.logging(recordedMessage, IRuntimeConstants.PI_RUNTIME); } catch (Exception e) { handleException(e); } catch (LinkageError e) { handleException(e); } } queuedMessages.clear(); }
	public static void addLogListener(ILogListener listener) {		synchronized (logListeners) {			// replace if already exists (Set behaviour but we use an array			// since we want to retain order)			logListeners.remove(listener);			logListeners.add(listener);		}	}