1 11 package org.eclipse.ltk.core.refactoring.history; 12 13 import org.eclipse.core.runtime.Assert; 14 15 import org.eclipse.ltk.core.refactoring.RefactoringDescriptor; 16 import org.eclipse.ltk.core.refactoring.RefactoringDescriptorProxy; 17 18 38 public final class RefactoringExecutionEvent { 39 40 41 public static final int ABOUT_TO_PERFORM= 4; 42 43 44 public static final int ABOUT_TO_REDO= 6; 45 46 47 public static final int ABOUT_TO_UNDO= 5; 48 49 50 public static final int PERFORMED= 1; 51 52 53 public static final int REDONE= 3; 54 55 56 public static final int UNDONE= 2; 57 58 59 private final RefactoringDescriptorProxy fProxy; 60 61 62 private final IRefactoringHistoryService fService; 63 64 65 private final int fType; 66 67 77 public RefactoringExecutionEvent(final IRefactoringHistoryService service, final int type, final RefactoringDescriptorProxy proxy) { 78 Assert.isNotNull(service); 79 Assert.isNotNull(proxy); 80 fService= service; 81 fType= type; 82 fProxy= proxy; 83 } 84 85 97 public RefactoringDescriptorProxy getDescriptor() { 98 return fProxy; 99 } 100 101 106 public int getEventType() { 107 return fType; 108 } 109 110 115 public IRefactoringHistoryService getHistoryService() { 116 return fService; 117 } 118 } 119 | Popular Tags |