Пример #1
0
 @Override
 public void setContents(
     IFileState source, boolean force, boolean keepHistory, IProgressMonitor monitor)
     throws CoreException {
   // funnel all operations to central method
   int updateFlags = force ? IResource.FORCE : IResource.NONE;
   updateFlags |= keepHistory ? IResource.KEEP_HISTORY : IResource.NONE;
   setContents(source.getContents(), updateFlags, monitor);
 }
Пример #2
0
 @Override
 public void setContents(IFileState content, int updateFlags, IProgressMonitor monitor)
     throws CoreException {
   setContents(content.getContents(), updateFlags, monitor);
 }