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

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