Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Kovatch2011-01-04 16:41:01 +0000
committerScott Kovatch2011-01-04 16:41:01 +0000
commitbc954da7a2612121429c0cff2ba2d4a83d2019fb (patch)
treeb648bbb2b34c0acd9e2489c8fa7697d2f9a97dfe /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
parentec3ae8ce3c5aa12c149338328bb9d4dafe04eefa (diff)
downloadeclipse.platform.swt-bc954da7a2612121429c0cff2ba2d4a83d2019fb.tar.gz
eclipse.platform.swt-bc954da7a2612121429c0cff2ba2d4a83d2019fb.tar.xz
eclipse.platform.swt-bc954da7a2612121429c0cff2ba2d4a83d2019fb.zip
332389 - don't add SWT_OBJECT to SWTToolbarView or embedded NSWindow subclasses.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
index 2eee3a74b8..9f82f88989 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/id.java
@@ -28,6 +28,14 @@ public id(id id) {
this.id = id != null ? id.id : 0;
}
+public int hashCode() {
+ return (int) this.id;
+}
+
+public boolean equals(Object other) {
+ return (this.id == ((id)other).id);
+}
+
public int /*long*/ objc_getClass() {
String name = getClass().getName();
int index = name.lastIndexOf('.');

Back to the top