Examples of revertModificationStamp()


Examples of org.eclipse.core.resources.IResource.revertModificationStamp()

      srcRes.move(destPath, IResource.SHALLOW, pm);
      postPerform(srcRes, destPath);
     
      if (fStampToRestore != IResource.NULL_STAMP) {
        IResource newResource= ResourcesPlugin.getWorkspace().getRoot().findMember(destPath);
        newResource.revertModificationStamp(fStampToRestore);
      }
      String oldName= fResourcePath.lastSegment();
      return new RenameTemplateChange(destPath, oldName, currentStamp);
    }
    catch(Exception e) {
View Full Code Here

Examples of org.eclipse.core.resources.IResource.revertModificationStamp()

            long currentStamp = resource.getModificationStamp();
            IPath newPath = renamedResourcePath(fResourcePath, fNewName);
            resource.move(newPath, IResource.SHALLOW, pm);
            if (fStampToRestore != IResource.NULL_STAMP) {
                IResource newResource = ResourcesPlugin.getWorkspace().getRoot().findMember(newPath);
                newResource.revertModificationStamp(fStampToRestore);
            }
            String oldName = fResourcePath.lastSegment();
            return new PyRenameResourceChange(newPath, oldName, fComment, currentStamp);
        } finally {
            pm.done();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.