public void dispose() {
   clearPaneActionHandlers();
   IHandlerService service = getHandlerService();
   if (service == null) return;
   service.deactivateHandlers(fActivations);
   fActivations.clear();
   fDisposed = true;
 }
 public void updatePaneActionHandlers(Runnable runnable) {
   clearPaneActionHandlers();
   runnable.run();
   updateActionBars();
 }