1 12 package org.eclipse.jface.dialogs; 13 14 import java.util.EventObject ; 15 16 import org.eclipse.core.runtime.Assert; 17 18 24 public class PageChangingEvent extends EventObject { 25 26 27 private static final long serialVersionUID = 1L; 28 29 private Object currentPage; 30 31 private Object targetPage; 32 33 40 public boolean doit = true; 41 42 55 public PageChangingEvent(Object source, Object currentPage, Object targetPage) { 56 super(source); 57 Assert.isNotNull(currentPage); 58 Assert.isNotNull(targetPage); 59 this.currentPage = currentPage; 60 this.targetPage = targetPage; 61 } 62 63 69 public Object getCurrentPage() { 70 return currentPage; 71 } 72 73 79 public Object getTargetPage() { 80 return targetPage; 81 } 82 83 } 84 | Popular Tags |