コード例 #1
0
  public void removeSelectionChangedListener(final ISelectionChangedListener listener) {
    final SelectionListenerAdapter adapter = m_adapters.get(listener);

    if (adapter != null) {
      m_selectionService.removeSelectionListener(adapter);
      m_adapters.remove(listener);
    }
  }
コード例 #2
0
  @Override
  public void dispose() {
    // on disposal remove the selection listener
    ISelectionService s = getSite().getWorkbenchWindow().getSelectionService();
    s.removeSelectionListener(selectionListener);

    super.dispose();
  }
コード例 #3
0
ファイル: ViewPicture.java プロジェクト: haku/Morrigan
 private void removeSelectionListener() {
   ISelectionService service = getSite().getWorkbenchWindow().getSelectionService();
   service.removeSelectionListener(this.selectionListener);
 }