@PreDestroy
 void preDestroy() {
   constructed = false;
   eventBroker.unsubscribe(selectedHandler);
   eventBroker.unsubscribe(minimizedPartHandler);
   partActivationHistory.clear();
 }
 @PreDestroy
 public void contextDisposed() {
   eventBroker.unsubscribe(itemUpdater);
   eventBroker.unsubscribe(selectionUpdater);
   eventBroker.unsubscribe(enabledUpdater);
   eventBroker.unsubscribe(toBeRenderedUpdater);
   eventBroker.unsubscribe(childAdditionUpdater);
 }
 @PreDestroy
 void contextDisposed() {
   if (eventBroker == null) return;
   eventBroker.unsubscribe(toBeRenderedHandler);
   eventBroker.unsubscribe(visibilityHandler);
   eventBroker.unsubscribe(childrenHandler);
   eventBroker.unsubscribe(trimHandler);
 }
  @PreDestroy
  void cleanUp() {
    if (perspectiveImage != null) {
      perspectiveImage.dispose();
      perspectiveImage = null;
    }

    eventBroker.unsubscribe(toBeRenderedHandler);
    eventBroker.unsubscribe(childrenHandler);
    eventBroker.unsubscribe(selectionHandler);
    eventBroker.unsubscribe(labelHandler);

    PrefUtil.getAPIPreferenceStore().removePropertyChangeListener(propertyChangeListener);
  }
 /** Unconfigure the handler */
 @PreDestroy
 public void dispose() {
   if (shellListener != null) {
     eventBroker.unsubscribe(shellListener);
   }
   if (menuListener != null) {
     eventBroker.unsubscribe(menuListener);
   }
   if (menuContributionListener != null) {
     eventBroker.unsubscribe(menuContributionListener);
   }
   if (commandListener != null) {
     eventBroker.unsubscribe(commandListener);
   }
   if (tagListener != null) {
     eventBroker.unsubscribe(tagListener);
   }
 }
  @PreDestroy
  public void contextDisposed() {
    eventBroker.unsubscribe(itemUpdater);
    eventBroker.unsubscribe(selectionUpdater);
    eventBroker.unsubscribe(enabledUpdater);
    eventBroker.unsubscribe(toBeRenderedUpdater);

    context.remove(MenuManagerRendererFilter.class);
    Display display = context.get(Display.class);
    if (display != null && !display.isDisposed() && rendererFilter != null) {
      display.removeFilter(SWT.Show, rendererFilter);
      display.removeFilter(SWT.Hide, rendererFilter);
      display.removeFilter(SWT.Dispose, rendererFilter);
    }
    if (rendererFilter != null) {
      ContextInjectionFactory.uninject(rendererFilter, context);
      rendererFilter = null;
    }
    context.remove(MenuManagerRenderer.class);
  }
 private void unregsiterModelListeners() {
   broker.unsubscribe(additionHandler);
 }
Пример #8
0
 @PreDestroy
 public void preDestroy() {
   eventBroker.unsubscribe(selectPerspectiveHandler);
   eventBroker.unsubscribe(tagListener);
 }
Пример #9
0
 @PreDestroy
 public void pd(IEventBroker broker) {
   broker.unsubscribe(meidaSelectedHandler);
   broker.unsubscribe(mediaChangedHandler);
 }