Mercurial > projects > dwt-addons
diff 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 |
line wrap: on
line diff
--- a/dwtx/jface/viewers/StructuredSelection.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/viewers/StructuredSelection.d Fri Apr 11 01:24:25 2008 +0200 @@ -95,7 +95,7 @@ * @param o the other object * @return <code>true</code> if they are equal, and <code>false</code> otherwise */ - public bool equals(Object o) { + public override int opEquals(Object o) { if (this is o) { return true; } @@ -185,7 +185,7 @@ * * @return debug string */ - public String toString() { + public override String toString() { return isEmpty() ? JFaceResources.getString("<empty_selection>") : (cast(Object)toList()).toString(); //$NON-NLS-1$ } }