1 11 package org.eclipse.jdt.core; 12 13 import org.eclipse.core.resources.IMarker; 14 import org.eclipse.core.resources.IResource; 15 import org.eclipse.core.runtime.IProgressMonitor; 16 17 54 public interface IWorkingCopy { 55 56 86 void commit(boolean force, IProgressMonitor monitor) throws JavaModelException; 87 88 103 void destroy(); 104 105 119 IJavaElement findSharedWorkingCopy(IBufferFactory bufferFactory); 120 121 132 IJavaElement getOriginal(IJavaElement workingCopyElement); 133 134 143 IJavaElement getOriginalElement(); 144 145 166 IJavaElement[] findElements(IJavaElement element); 167 168 177 IType findPrimaryType(); 178 179 220 IJavaElement getSharedWorkingCopy( 221 IProgressMonitor monitor, 222 IBufferFactory factory, 223 IProblemRequestor problemRequestor) 224 throws JavaModelException; 225 226 247 IJavaElement getWorkingCopy() throws JavaModelException; 248 249 282 IJavaElement getWorkingCopy( 283 IProgressMonitor monitor, 284 IBufferFactory factory, 285 IProblemRequestor problemRequestor) 286 throws JavaModelException; 287 288 298 boolean isBasedOn(IResource resource); 299 300 307 boolean isWorkingCopy(); 308 309 335 IMarker[] reconcile() throws JavaModelException; 336 337 366 void reconcile(boolean forceProblemDetection, IProgressMonitor monitor) throws JavaModelException; 367 368 383 void restore() throws JavaModelException; 384 } 385 | Popular Tags |