Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2007-08-15 15:57:20 +0000
committerspingel2007-08-15 15:57:20 +0000
commit82ab2dfcf1a708068b2e55beea1b6939083956ea (patch)
tree4b35fa96c3272639c3cc2c95e40ab0b4809ad390 /org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model
parent3ccb4855582c7ebecfa14643b66a1baf07ee9c1a (diff)
downloadorg.eclipse.mylyn.tasks-82ab2dfcf1a708068b2e55beea1b6939083956ea.tar.gz
org.eclipse.mylyn.tasks-82ab2dfcf1a708068b2e55beea1b6939083956ea.tar.xz
org.eclipse.mylyn.tasks-82ab2dfcf1a708068b2e55beea1b6939083956ea.zip
NEW - bug 198733: create a Wiki page editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198733
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