Exemplo n.º 1
0
 private void initSelectionListener() {
   ISelectionService service = getSite().getWorkbenchWindow().getSelectionService();
   service.addSelectionListener(this.selectionListener);
 }
  public void addSelectionChangedListener(final ISelectionChangedListener listener) {
    final SelectionListenerAdapter adapter = new SelectionListenerAdapter(listener);

    m_adapters.put(listener, adapter);
    m_selectionService.addSelectionListener(adapter);
  }