comparison dwt/dnd/DropTargetListener.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 380af2bdd8e5
children d8635bb48c7c
comparison
equal deleted inserted replaced
6:b903c16b6f48 7:e831403a80a9
174 * data as follows:</p> 174 * data as follows:</p>
175 * 175 *
176 * <pre><code> 176 * <pre><code>
177 * public void dragOver(DropTargetEvent event) { 177 * public void dragOver(DropTargetEvent event) {
178 * TextTransfer textTransfer = TextTransfer.getInstance(); 178 * TextTransfer textTransfer = TextTransfer.getInstance();
179 * String data = (String)textTransfer.nativeToJava(event.currentDataType); 179 * String data = cast(String)textTransfer.nativeToJava(event.currentDataType);
180 * if (data !is null) { 180 * if (data !is null) {
181 * System.out.println("Data to be dropped is (Text)"+data); 181 * System.out.println("Data to be dropped is cast(Text)"+data);
182 * } 182 * }
183 * }; 183 * };
184 * </code></pre> 184 * </code></pre>
185 * 185 *
186 * @param event the information associated with the drag over event 186 * @param event the information associated with the drag over event