Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/fieldassist/FieldAssistColors.d @ 18:735224fcc45f
redirected all printings to DwtLogger
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 09:57:53 +0100 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
17:6f068362a363 | 18:735224fcc45f |
---|---|
25 import java.util.ArrayList; | 25 import java.util.ArrayList; |
26 import java.util.Iterator; | 26 import java.util.Iterator; |
27 import java.util.Map; | 27 import java.util.Map; |
28 import java.util.HashMap; | 28 import java.util.HashMap; |
29 import java.util.Set; | 29 import java.util.Set; |
30 import tango.io.Stdout; | |
31 | 30 |
32 /** | 31 /** |
33 * FieldAssistColors defines protocol for retrieving colors that can be used to | 32 * FieldAssistColors defines protocol for retrieving colors that can be used to |
34 * provide visual cues with fields. For consistency with JFace dialogs and | 33 * provide visual cues with fields. For consistency with JFace dialogs and |
35 * wizards, it is recommended that FieldAssistColors is used when colors are | 34 * wizards, it is recommended that FieldAssistColors is used when colors are |
168 */ | 167 */ |
169 private static void disposeColors(Display display) { | 168 private static void disposeColors(Display display) { |
170 List toBeRemoved = new ArrayList(1); | 169 List toBeRemoved = new ArrayList(1); |
171 | 170 |
172 if (DEBUG) { | 171 if (DEBUG) { |
173 Stdout.formatln("Display map is {}", (cast(Object)displays).toString()); //$NON-NLS-1$ | 172 getDwtLogger.info( __FILE__, __LINE__, "Display map is {}", (cast(Object)displays).toString()); //$NON-NLS-1$ |
174 Stdout.formatln("Color map is {}", (cast(Object)requiredFieldColorMap).toString()); //$NON-NLS-1$ | 173 getDwtLogger.info( __FILE__, __LINE__, "Color map is {}", (cast(Object)requiredFieldColorMap).toString()); //$NON-NLS-1$ |
175 } | 174 } |
176 | 175 |
177 // Look for any stored colors that were created on this display | 176 // Look for any stored colors that were created on this display |
178 for (Iterator i = displays.keySet().iterator(); i.hasNext();) { | 177 for (Iterator i = displays.keySet().iterator(); i.hasNext();) { |
179 Color color = cast(Color) i.next(); | 178 Color color = cast(Color) i.next(); |
209 // color or else the comparison between this color and the one | 208 // color or else the comparison between this color and the one |
210 // in the map will fail. | 209 // in the map will fail. |
211 displays.remove(color); | 210 displays.remove(color); |
212 // Dispose it | 211 // Dispose it |
213 if (DEBUG) { | 212 if (DEBUG) { |
214 Stdout.formatln("Disposing color {}", color.toString()); //$NON-NLS-1$ | 213 getDwtLogger.info( __FILE__, __LINE__, "Disposing color {}", color.toString()); //$NON-NLS-1$ |
215 } | 214 } |
216 color.dispose(); | 215 color.dispose(); |
217 } | 216 } |
218 if (DEBUG) { | 217 if (DEBUG) { |
219 Stdout.formatln("Display map is {}", (cast(Object)displays).toString()); //$NON-NLS-1$ | 218 getDwtLogger.info( __FILE__, __LINE__, "Display map is {}", (cast(Object)displays).toString()); //$NON-NLS-1$ |
220 Stdout.formatln("Color map is {}", (cast(Object)requiredFieldColorMap).toString()); //$NON-NLS-1$ | 219 getDwtLogger.info( __FILE__, __LINE__, "Color map is {}", (cast(Object)requiredFieldColorMap).toString()); //$NON-NLS-1$ |
221 } | 220 } |
222 } | 221 } |
223 | 222 |
224 } | 223 } |