Guest User

Untitled

a guest
Jun 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. getSite().setSelectionProvider( this );
  2.  
  3. public void fireSelectionChanged()
  4. {
  5. final SelectionChangedEvent event = new SelectionChangedEvent( this, new StructuredSelection( this ) );
  6. Object[] listeners = selectionChangedListeners.getListeners();
  7. for (int i = 0; i < listeners.length; ++i)
  8. {
  9. final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i];
  10. SafeRunnable.run(new SafeRunnable() {
  11. public void run() {
  12. l.selectionChanged( event );
  13. }
  14. });
  15. }
  16. }
Add Comment
Please, Sign In to add comment