1 11 package org.eclipse.ltk.internal.ui.refactoring.model; 12 13 import org.eclipse.team.core.diff.IThreeWayDiff; 14 15 import org.eclipse.core.runtime.Assert; 16 import org.eclipse.core.runtime.IProgressMonitor; 17 18 import org.eclipse.ltk.core.refactoring.RefactoringDescriptor; 19 import org.eclipse.ltk.core.refactoring.RefactoringDescriptorProxy; 20 21 27 public final class RefactoringDescriptorSynchronizationProxy extends RefactoringDescriptorProxy { 28 29 30 private final int fDirection; 31 32 33 private final String fProject; 34 35 36 private final RefactoringDescriptorProxy fProxy; 37 38 56 public RefactoringDescriptorSynchronizationProxy(final RefactoringDescriptorProxy proxy, final String project, final int direction) { 57 Assert.isNotNull(proxy); 58 Assert.isNotNull(project); 59 Assert.isTrue(!"".equals(project)); fProxy= proxy; 61 fProject= project; 62 fDirection= direction; 63 } 64 65 68 public int compareTo(final Object object) { 69 return fProxy.compareTo(object); 70 } 71 72 75 public String getDescription() { 76 return fProxy.getDescription(); 77 } 78 79 91 public int getDirection() { 92 return fDirection; 93 } 94 95 98 public String getProject() { 99 return fProject; 100 } 101 102 105 public long getTimeStamp() { 106 return fProxy.getTimeStamp(); 107 } 108 109 112 public RefactoringDescriptor requestDescriptor(final IProgressMonitor monitor) { 113 return fProxy.requestDescriptor(monitor); 114 } 115 116 119 public String toString() { 120 return fProxy.toString(); 121 } 122 } | Popular Tags |