Examples of IThreeWayDiff


Examples of org.eclipse.team.core.diff.IThreeWayDiff

    return null;
  }

  private static IFileRevision getBase(IDiff diff) {
    if (diff instanceof IThreeWayDiff) {
      final IThreeWayDiff twd = (IThreeWayDiff) diff;
      final IDiff remoteChange = twd.getRemoteChange();
      if (remoteChange instanceof IResourceDiff)
        return ((IResourceDiff) remoteChange).getBeforeState();

      final IDiff localChange = twd.getLocalChange();
      if (localChange instanceof IResourceDiff)
        return ((IResourceDiff) localChange).getBeforeState();
    }

    return null;
View Full Code Here

Examples of org.eclipse.team.core.diff.IThreeWayDiff

  private static IFileRevision getSource(IDiff diff) {
    if (diff instanceof IResourceDiff)
      return ((IResourceDiff) diff).getBeforeState();

    if (diff instanceof IThreeWayDiff) {
      final IThreeWayDiff twd = (IThreeWayDiff) diff;
      final IDiff localChange = twd.getLocalChange();
      if (localChange instanceof IResourceDiff)
        return ((IResourceDiff) localChange).getAfterState();
    }

    return null;
View Full Code Here

Examples of org.eclipse.team.core.diff.IThreeWayDiff

  private static IFileRevision getDestination(IDiff diff) {
    if (diff instanceof IResourceDiff)
      return ((IResourceDiff) diff).getAfterState();

    if (diff instanceof IThreeWayDiff) {
      final IThreeWayDiff twd = (IThreeWayDiff) diff;
      final IDiff remoteChange = twd.getRemoteChange();
      if (remoteChange instanceof IResourceDiff)
        return ((IResourceDiff) remoteChange).getAfterState();

      final IDiff localChange = twd.getLocalChange();
      if (localChange instanceof IResourceDiff)
        return ((IResourceDiff) localChange).getBeforeState();
    }

    return null;
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.