Mercurial > projects > dwt-addons
comparison dwtx/jface/text/contentassist/ContextInformation.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | b6bad70d540a |
comparison
equal
deleted
inserted
replaced
133:7d818bd32d63 | 134:51e6e63f930e |
---|---|
96 /* | 96 /* |
97 * @see IContextInformation#equals(Object) | 97 * @see IContextInformation#equals(Object) |
98 */ | 98 */ |
99 public bool equals(Object object) { | 99 public bool equals(Object object) { |
100 if (object instanceof IContextInformation) { | 100 if (object instanceof IContextInformation) { |
101 IContextInformation contextInformation= (IContextInformation) object; | 101 IContextInformation contextInformation= cast(IContextInformation) object; |
102 bool equals= fInformationDisplayString.equalsIgnoreCase(contextInformation.getInformationDisplayString()); | 102 bool equals= fInformationDisplayString.equalsIgnoreCase(contextInformation.getInformationDisplayString()); |
103 if (fContextDisplayString !is null) | 103 if (fContextDisplayString !is null) |
104 equals= equals && fContextDisplayString.equalsIgnoreCase(contextInformation.getContextDisplayString()); | 104 equals= equals && fContextDisplayString.equalsIgnoreCase(contextInformation.getContextDisplayString()); |
105 return equals; | 105 return equals; |
106 } | 106 } |