[shelf]: IDEA-112589 Unexpected clipboard content after Ctrl+C on shelf's files list

This commit is contained in:
Nadya Zabrodina
2016-06-28 00:09:46 +03:00
parent 19c3998543
commit c213d04a5a
2 changed files with 9 additions and 0 deletions
@@ -128,4 +128,8 @@ public class ShelvedBinaryFile implements JDOMExternalizable {
result = 31 * result + (SHELVED_PATH != null ? SHELVED_PATH.hashCode() : 0);
return result;
}
public String toString() {
return FileUtil.toSystemDependentName(BEFORE_PATH == null ? AFTER_PATH : BEFORE_PATH);
}
}
@@ -34,6 +34,7 @@ import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.Computable;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vcs.FilePath;
import com.intellij.openapi.vcs.FileStatus;
import com.intellij.openapi.vcs.VcsBundle;
@@ -265,4 +266,8 @@ public class ShelvedChange {
public String getPatchPath() {
return myPatchPath;
}
public String toString() {
return FileUtil.toSystemDependentName(myBeforePath == null ? myAfterPath : myBeforePath);
}
}