private void broadcastSelectionEvent(SelectionEvent event) { for (SelectionListener listener : mySelectionListeners) { try { listener.selectionChanged(event); } catch (Exception e) { LOG.error(e); } } }
public void addSelectionListener(final SelectionListener listener, Disposable parent) { mySelectionListeners.add(listener); Disposer.register(parent, new Disposable() { @Override public void dispose() { mySelectionListeners.remove(listener); } }); }
@Override public void addSelectionListener(final SelectionListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void removeSelectionListener(final SelectionListener listener) { throw new UnsupportedOperationException("Not implemented"); }
@Override public void addSelectionListener(SelectionListener listener) { mySelectionListeners.add(listener); }
@Override public void removeSelectionListener(SelectionListener listener) { boolean success = mySelectionListeners.remove(listener); LOG.assertTrue(success); }
@Override public void addSelectionListener(final SelectionListener listener) { myHostModel.addSelectionListener(listener); }
@Override public void removeSelectionListener(final SelectionListener listener) { myHostModel.removeSelectionListener(listener); }
/** * Adds a listener for receiving information about selection changes. * * @param listener the listener instance. */ void addSelectionListener(SelectionListener listener);
/** * Removes a listener for receiving information about selection changes. * * @param listener the listener instance. */ void removeSelectionListener(SelectionListener listener);