Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/StructuredSelection.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | b6c35faf97c8 |
children | 46a6e0e6ccd4 |
comparison
equal
deleted
inserted
replaced
42:4567a6f54939 | 43:ea8ff534f622 |
---|---|
93 * in the same order. | 93 * in the same order. |
94 * | 94 * |
95 * @param o the other object | 95 * @param o the other object |
96 * @return <code>true</code> if they are equal, and <code>false</code> otherwise | 96 * @return <code>true</code> if they are equal, and <code>false</code> otherwise |
97 */ | 97 */ |
98 public bool equals(Object o) { | 98 public override int opEquals(Object o) { |
99 if (this is o) { | 99 if (this is o) { |
100 return true; | 100 return true; |
101 } | 101 } |
102 //null and other classes | 102 //null and other classes |
103 if (!(cast(StructuredSelection)o )) { | 103 if (!(cast(StructuredSelection)o )) { |
183 * Internal method which returns a string representation of this | 183 * Internal method which returns a string representation of this |
184 * selection suitable for debug purposes only. | 184 * selection suitable for debug purposes only. |
185 * | 185 * |
186 * @return debug string | 186 * @return debug string |
187 */ | 187 */ |
188 public String toString() { | 188 public override String toString() { |
189 return isEmpty() ? JFaceResources.getString("<empty_selection>") : (cast(Object)toList()).toString(); //$NON-NLS-1$ | 189 return isEmpty() ? JFaceResources.getString("<empty_selection>") : (cast(Object)toList()).toString(); //$NON-NLS-1$ |
190 } | 190 } |
191 } | 191 } |