mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
additional checks
This commit is contained in:
@@ -193,6 +193,11 @@ public class DirDiffElement {
|
||||
}
|
||||
|
||||
public void setOperation(@NotNull DirDiffOperation operation) {
|
||||
if (myType == DType.EQUAL || myType == DType.SEPARATOR) return;
|
||||
if (myType == DType.TARGET && operation == COPY_TO) return;
|
||||
if (myType == DType.SOURCE && operation == COPY_FROM) return;
|
||||
if (myType == DType.CHANGED && operation == DELETE) return;
|
||||
|
||||
myOperation = operation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user