Ejemplo n.º 1
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.ui.tests.harness.util.UITestCase#doTearDown()
  */
 protected void doTearDown() throws Exception {
   handlerService.deactivateHandlers(testHandlerActivations.values());
   testHandlerActivations.clear();
   contextService.deactivateContexts(testContextActivations.values());
   testContextActivations.clear();
   super.doTearDown();
 }
 public void dispose() {
   clearPaneActionHandlers();
   IHandlerService service = getHandlerService();
   if (service == null) return;
   service.deactivateHandlers(fActivations);
   fActivations.clear();
   fDisposed = true;
 }
 public void deregisterCommands() {
   IHandlerService handlerService =
       (IHandlerService) PlatformUI.getWorkbench().getAdapter(IHandlerService.class);
   if (handlerService != null && fCorrectionHandlerActivations != null) {
     handlerService.deactivateHandlers(fCorrectionHandlerActivations);
     fCorrectionHandlerActivations = null;
   }
 }
 private void clearPaneActionHandlers() {
   if (!fPaneActivations.isEmpty()) {
     IHandlerService service = getHandlerService();
     if (service != null) {
       service.deactivateHandlers(fPaneActivations);
       fPaneActivations.clear();
     }
   }
 }