Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2004-10-14 13:43:27 -0400
committerAlain Magloire2004-10-14 13:43:27 -0400
commit8d2f7161937f699fc7a0b917281e34636b7eece5 (patch)
treec88f98a2f8d79c2fc0860c7d61edd29c257a5638 /core
parent19ffaa04f2b230e0f17600fdd302594b6781c07e (diff)
downloadorg.eclipse.cdt-8d2f7161937f699fc7a0b917281e34636b7eece5.tar.gz
org.eclipse.cdt-8d2f7161937f699fc7a0b917281e34636b7eece5.tar.xz
org.eclipse.cdt-8d2f7161937f699fc7a0b917281e34636b7eece5.zip
2004-10-14 Alain Magloire
Provide the hashCode method. * src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/ChangeLog5
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java11
2 files changed, 16 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog
index e1f3f80905b..6ef92cc56d3 100644
--- a/core/org.eclipse.cdt.ui/ChangeLog
+++ b/core/org.eclipse.cdt.ui/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-14 Alain Magloire
+
+ Provide the hashCode method.
+ * src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java
+
2004-09-24 Chris Wiebe
minor icon cleanup
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java
index 5e4169524b3..d649b42c84f 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/IncludeRefContainer.java
@@ -99,4 +99,15 @@ public class IncludeRefContainer extends CElementGrouping {
}
return super.equals(obj);
}
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#hashCode()
+ */
+ public int hashCode() {
+ if (fCProject != null) {
+ return fCProject.hashCode();
+ }
+ return super.hashCode();
+ }
+
}

Back to the top