code: public void deactivated()
  	{
  		// remove EOF submissions
  		IPageSite site = fPage.getSite();
  		IHandlerService handlerService = (IHandlerService) site.getService(IHandlerService.class);
  		IContextService contextService = (IContextService) site.getService(IContextService.class);
  		handlerService.deactivateHandler(fActivatedHandler);
  		contextService.deactivateContext(fActivatedContext);
  		fActivatedContext = null;
  		fActivatedHandler = null;
  	}
docs: /*
  (non-Javadoc)
  @see org.eclipse.ui.console.IConsolePageParticipant#deactivated()