Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracWikiPage.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracWikiPage.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracWikiPage.java
index 07d1baf49..e064cbe3d 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracWikiPage.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracWikiPage.java
@@ -14,7 +14,7 @@ package org.eclipse.mylyn.internal.trac.core.model;
* @author Xiaoyang Guan
*/
public class TracWikiPage {
-
+
private TracWikiPageInfo pageInfo;
private String content;
@@ -23,7 +23,7 @@ public class TracWikiPage {
public TracWikiPage() {
}
-
+
public TracWikiPageInfo getPageInfo() {
return pageInfo;
}
@@ -47,4 +47,18 @@ public class TracWikiPage {
public void setPageHTML(String pageHTML) {
this.pageHTML = pageHTML;
}
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj == null) {
+ return false;
+ } else if (this == obj) {
+ return true;
+ } else if (getClass() != obj.getClass()) {
+ return false;
+ } else {
+ TracWikiPage other = (TracWikiPage) obj;
+ return content.equals(other.content) && pageInfo.toString().equals(other.pageInfo.toString());
+ }
+ }
}

Back to the top