Search in sources :

Example 1 with ConflictedSvnChange

use of org.jetbrains.idea.svn.ConflictedSvnChange in project intellij-community by JetBrains.

the class SvnTreeConflictDiffRequestProvider method isEquals.

@NotNull
@Override
public ThreeState isEquals(@NotNull Change change1, @NotNull Change change2) {
    if (change1 instanceof ConflictedSvnChange && change2 instanceof ConflictedSvnChange) {
        if (!change1.isTreeConflict() && !change2.isTreeConflict())
            return ThreeState.UNSURE;
        if (!change1.isTreeConflict() || !change2.isTreeConflict())
            return ThreeState.NO;
        TreeConflictDescription description1 = ((ConflictedSvnChange) change1).getBeforeDescription();
        TreeConflictDescription description2 = ((ConflictedSvnChange) change2).getBeforeDescription();
        return TreeConflictRefreshablePanel.descriptionsEqual(description1, description2) ? ThreeState.YES : ThreeState.NO;
    }
    return ThreeState.UNSURE;
}
Also used : TreeConflictDescription(org.jetbrains.idea.svn.conflict.TreeConflictDescription) ConflictedSvnChange(org.jetbrains.idea.svn.ConflictedSvnChange) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NotNull (org.jetbrains.annotations.NotNull)1 ConflictedSvnChange (org.jetbrains.idea.svn.ConflictedSvnChange)1 TreeConflictDescription (org.jetbrains.idea.svn.conflict.TreeConflictDescription)1