Class RenameDetector

java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.RenameDetector

public class RenameDetector extends Object
Detector for revealing potential file renames that may have occurred in IStorageProviderAccessor.DiffSide.SOURCE or IStorageProviderAccessor.DiffSide.REMOTE in the context of a Subscriber.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenameDetector(org.eclipse.team.core.subscribers.Subscriber subscriber, IStorageProviderAccessor accessor)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.base.Optional<org.eclipse.core.resources.IFile>
    getFileAfterRename(org.eclipse.core.resources.IFile originFile, IStorageProviderAccessor.DiffSide side)
    Given an origin file, this method optionally returns the corresponding IFile after it has been renamed on the respective side, if it has been renamed at all.
    com.google.common.base.Optional<org.eclipse.core.resources.IFile>
    getFileBeforeRename(org.eclipse.core.resources.IFile sourceOrRemoteFile, IStorageProviderAccessor.DiffSide side)
    Given a source or remote file, this method optionally returns the corresponding IFile before it has been renamed on the respective side, if it has been renamed at all.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait