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.RefactoringDescriptorProxy; 20 21 import org.eclipse.ltk.internal.ui.refactoring.Messages; 22 23 28 public final class RefactoringDescriptorDiff implements IThreeWayDiff { 29 30 31 private final RefactoringDescriptorProxy fDescriptor; 32 33 34 private final int fDirection; 35 36 37 private final int fKind; 38 39 49 public RefactoringDescriptorDiff(final RefactoringDescriptorProxy descriptor, final int kind, final int direction) { 50 Assert.isNotNull(descriptor); 51 fDescriptor= descriptor; 52 fKind= kind; 53 fDirection= direction; 54 } 55 56 61 public RefactoringDescriptorProxy getDescriptor() { 62 return fDescriptor; 63 } 64 65 68 public int getDirection() { 69 return fDirection; 70 } 71 72 75 public int getKind() { 76 return fKind; 77 } 78 79 82 public ITwoWayDiff getLocalChange() { 83 return null; 84 } 85 86 89 public IPath getPath() { 90 return null; 91 } 92 93 96 public ITwoWayDiff getRemoteChange() { 97 return null; 98 } 99 100 103 public String toDiffString() { 104 return Messages.format(ModelMessages.RefactoringDescriptorDiff_diff_string, fDescriptor.getDescription()); 105 } 106 } 107 | Popular Tags |