1 11 package org.eclipse.ltk.internal.ui.refactoring.model; 12 13 import org.eclipse.team.core.diff.IThreeWayDiff; 14 import org.eclipse.team.core.diff.ITwoWayDiff; 15 16 import org.eclipse.core.runtime.Assert; 17 import org.eclipse.core.runtime.IPath; 18 19 import org.eclipse.ltk.core.refactoring.history.RefactoringHistory; 20 21 26 public final class RefactoringHistoryDiff implements IThreeWayDiff { 27 28 29 private final int fDirection; 30 31 32 private final RefactoringHistory fHistory; 33 34 35 private final int fKind; 36 37 47 public RefactoringHistoryDiff(final RefactoringHistory history, final int kind, final int direction) { 48 Assert.isNotNull(history); 49 fHistory= history; 50 fKind= kind; 51 fDirection= direction; 52 } 53 54 57 public int getDirection() { 58 return fDirection; 59 } 60 61 64 public int getKind() { 65 return fKind; 66 } 67 68 71 public ITwoWayDiff getLocalChange() { 72 return null; 73 } 74 75 78 public IPath getPath() { 79 return null; 80 } 81 82 87 public RefactoringHistory getRefactoringHistory() { 88 return fHistory; 89 } 90 91 94 public ITwoWayDiff getRemoteChange() { 95 return null; 96 } 97 98 101 public String toDiffString() { 102 return ModelMessages.RefactoringHistoryDiff_diff_string; 103 } 104 } 105 | Popular Tags |