Log.log(Log.DEBUG,this,"waitForRequests(): leaving");
else { try { SwingUtilities.invokeAndWait(new RunRequestsInAWTThread()); } catch(Exception e) { Log.log(Log.ERROR,this,e); } }
	public void waitForRequests()	{		Log.log(Log.DEBUG,this,"waitForRequests(): entering");		synchronized(waitForAllLock)		{			while(requestCount != 0)			{				try				{					waitForAllLock.wait();				}				catch(InterruptedException ie)				{					Log.log(Log.ERROR,this,ie);				}			}		}		// FIXME: when called from a non-AWT thread,		// waitForRequests() will return before all		// AWT runnables have completed		if(SwingUtilities.isEventDispatchThread())		{			Log.log(Log.DEBUG,this,"waitForRequests() running"				+ " remaining AWT requests");			// do any queued AWT runnables			doAWTRequests();		}		Log.log(Log.DEBUG,this,"waitForRequests(): leaving");	}