1 11 package org.eclipse.jface.viewers; 12 13 import java.util.EventObject ; 14 15 import org.eclipse.core.runtime.Assert; 16 17 23 public class DoubleClickEvent extends EventObject { 24 25 29 private static final long serialVersionUID = 3258408443605038133L; 30 31 34 protected ISelection selection; 35 36 42 public DoubleClickEvent(Viewer source, ISelection selection) { 43 super(source); 44 Assert.isNotNull(selection); 45 this.selection = selection; 46 } 47 48 53 public ISelection getSelection() { 54 return selection; 55 } 56 57 62 public Viewer getViewer() { 63 return (Viewer) getSource(); 64 } 65 } 66 | Popular Tags |