1 11 package org.eclipse.jface.dialogs; 12 13 import java.util.EventObject ; 14 15 import org.eclipse.core.runtime.Assert; 16 17 26 public class PageChangedEvent extends EventObject { 27 28 33 private static final long serialVersionUID = 3835149545519723574L; 34 35 38 protected Object selectedPage; 39 40 49 public PageChangedEvent(IPageChangeProvider source, 50 Object selectedPage) { 51 super(source); 52 Assert.isNotNull(selectedPage); 53 this.selectedPage = selectedPage; 54 } 55 56 62 public Object getSelectedPage() { 63 return selectedPage; 64 } 65 66 71 public IPageChangeProvider getPageChangeProvider() { 72 return (IPageChangeProvider) getSource(); 73 } 74 } 75 | Popular Tags |