1 11 package org.eclipse.jface.viewers; 12 13 import java.util.EventObject ; 14 15 import org.eclipse.core.runtime.Assert; 16 17 25 public class SelectionChangedEvent extends EventObject { 26 27 31 private static final long serialVersionUID = 3835149545519723574L; 32 33 36 protected ISelection selection; 37 38 44 public SelectionChangedEvent(ISelectionProvider source, ISelection selection) { 45 super(source); 46 Assert.isNotNull(selection); 47 this.selection = selection; 48 } 49 50 55 public ISelection getSelection() { 56 return selection; 57 } 58 59 64 public ISelectionProvider getSelectionProvider() { 65 return (ISelectionProvider) getSource(); 66 } 67 } 68 | Popular Tags |