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 37 public final class RefactoringHistoryEvent { 38 39 43 public static final int ADDED= 4; 44 45 49 public static final int DELETED= 3; 50 51 55 public static final int POPPED= 2; 56 57 61 public static final int PUSHED= 1; 62 63 64 private final RefactoringDescriptorProxy fProxy; 65 66 67 private final IRefactoringHistoryService fService; 68 69 70 private final int fType; 71 72 82 public RefactoringHistoryEvent(final IRefactoringHistoryService service, final int type, final RefactoringDescriptorProxy proxy) { 83 Assert.isNotNull(service); 84 Assert.isNotNull(proxy); 85 fService= service; 86 fType= type; 87 fProxy= proxy; 88 } 89 90 102 public RefactoringDescriptorProxy getDescriptor() { 103 return fProxy; 104 } 105 106 111 public int getEventType() { 112 return fType; 113 } 114 115 120 public IRefactoringHistoryService getHistoryService() { 121 return fService; 122 } 123 } 124 | Popular Tags |