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