code: public void handleDebugEvents(DebugEvent[] events)
  	{
  		for (int i = 0; i < events.length; i++)
  		{
  			DebugEvent event = events[i];
  			if (event.getSource().equals(getProcess()))
  			{
  				Runnable r = new Runnable()
  				{
  					public void run()
  					{
  						if (fTerminate != null)
  						{
  							fTerminate.update();
  						}
  					}
  				};
  
  				DebugUIPlugin.getStandardDisplay().asyncExec(r);
  			}
  		}
  	}
docs: /*
  (non-Javadoc)
  @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])