SVN 1.6 support. svnkit: 1-3-0-beta3, patched for IDEA
[fedora-idea.git] / vcs-api / src / com / intellij / openapi / vcs / changes / LocallyDeletedChange.java
blob9d0ef3d2937b5073cae0266f21e531134adfdd25
1 package com.intellij.openapi.vcs.changes;
3 import com.intellij.openapi.vcs.FilePath;
4 import org.jetbrains.annotations.NotNull;
5 import org.jetbrains.annotations.Nullable;
7 import javax.swing.*;
9 public class LocallyDeletedChange {
10 private final String myPresentableUrl;
11 private final FilePath myPath;
13 public LocallyDeletedChange(@NotNull final FilePath path) {
14 myPath = path;
15 myPresentableUrl = myPath.getPresentableUrl();
18 public FilePath getPath() {
19 return myPath;
22 @Nullable
23 public Icon getAddIcon() {
24 return null;
27 @Override
28 public boolean equals(Object o) {
29 if (this == o) return true;
30 if (o == null || getClass() != o.getClass()) return false;
32 LocallyDeletedChange that = (LocallyDeletedChange)o;
34 if (!myPresentableUrl.equals(that.myPresentableUrl)) return false;
36 return true;
39 @Override
40 public int hashCode() {
41 return myPresentableUrl.hashCode();
44 public String getPresentableUrl() {
45 return myPresentableUrl;
48 @Nullable
49 public String getDescription() {
50 return null;