IDEA-83757 Play framework: navigate from views back to controller methods

This commit is contained in:
Serega Vasiliev
2012-05-08 15:12:53 +02:00
parent af805bdea3
commit 5259e979bd
2 changed files with 17 additions and 1 deletions
@@ -75,4 +75,21 @@ public class GotoRelatedItem {
}
return items;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GotoRelatedItem item = (GotoRelatedItem)o;
if (myElement != null ? !myElement.equals(item.myElement) : item.myElement != null) return false;
return true;
}
@Override
public int hashCode() {
return myElement != null ? myElement.hashCode() : 0;
}
}
@@ -32,7 +32,6 @@ public class DomGotoRelatedItem extends GotoRelatedItem {
myElement = element;
}
@NotNull
@Override
public String getCustomName() {
return myElement.getPresentation().getElementName();