コード例 #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();
 }
コード例 #2
0
 public void dispose() {
   clearPaneActionHandlers();
   IHandlerService service = getHandlerService();
   if (service == null) return;
   service.deactivateHandlers(fActivations);
   fActivations.clear();
   fDisposed = true;
 }
コード例 #3
0
 public void deregisterCommands() {
   IHandlerService handlerService =
       (IHandlerService) PlatformUI.getWorkbench().getAdapter(IHandlerService.class);
   if (handlerService != null && fCorrectionHandlerActivations != null) {
     handlerService.deactivateHandlers(fCorrectionHandlerActivations);
     fCorrectionHandlerActivations = null;
   }
 }
コード例 #4
0
 private void clearPaneActionHandlers() {
   if (!fPaneActivations.isEmpty()) {
     IHandlerService service = getHandlerService();
     if (service != null) {
       service.deactivateHandlers(fPaneActivations);
       fPaneActivations.clear();
     }
   }
 }