Changeset 238:380bad9f6852 for dwt/dnd/DND.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/dnd/DND.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dnd/DND.d
r115 r238 13 13 module dwt.dnd.DND; 14 14 15 import dwt.dwthelper.utils; 16 15 17 16 18 import dwt.DWT; … … 201 203 202 204 203 static const char[]INIT_DRAG_MESSAGE = "Cannot initialize Drag"; //$NON-NLS-1$204 static const char[]INIT_DROP_MESSAGE = "Cannot initialize Drop"; //$NON-NLS-1$205 static const char[]CANNOT_SET_CLIPBOARD_MESSAGE = "Cannot set data in clipboard"; //$NON-NLS-1$206 static const char[]INVALID_DATA_MESSAGE = "Data does not have correct format for type"; //$NON-NLS-1$205 static const String INIT_DRAG_MESSAGE = "Cannot initialize Drag"; //$NON-NLS-1$ 206 static const String INIT_DROP_MESSAGE = "Cannot initialize Drop"; //$NON-NLS-1$ 207 static const String CANNOT_SET_CLIPBOARD_MESSAGE = "Cannot set data in clipboard"; //$NON-NLS-1$ 208 static const String INVALID_DATA_MESSAGE = "Data does not have correct format for type"; //$NON-NLS-1$ 207 209 208 210 /** … … 244 246 /* OS Failure/Limit (fatal, may occur only on some platforms) */ 245 247 case DND.ERROR_CANNOT_INIT_DRAG:{ 246 char[]msg = DND.INIT_DRAG_MESSAGE;247 if (hresult !is 0) msg ~= " result = "~to!( char[])(hresult); //$NON-NLS-1$248 String msg = DND.INIT_DRAG_MESSAGE; 249 if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 248 250 throw new DWTError (code, msg); 249 251 } 250 252 case DND.ERROR_CANNOT_INIT_DROP:{ 251 char[]msg = DND.INIT_DROP_MESSAGE;252 if (hresult !is 0) msg ~= " result = "~to!( char[])(hresult); //$NON-NLS-1$253 String msg = DND.INIT_DROP_MESSAGE; 254 if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 253 255 throw new DWTError (code, msg); 254 256 } 255 257 case DND.ERROR_CANNOT_SET_CLIPBOARD:{ 256 char[]msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE;257 if (hresult !is 0) msg ~= " result = "~to!( char[])(hresult); //$NON-NLS-1$258 String msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE; 259 if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 258 260 throw new DWTError (code, msg); 259 261 } 260 262 case DND.ERROR_INVALID_DATA:{ 261 char[]msg = DND.INVALID_DATA_MESSAGE;262 if (hresult !is 0) msg ~= " result = "~to!( char[])(hresult); //$NON-NLS-1$263 String msg = DND.INVALID_DATA_MESSAGE; 264 if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 263 265 throw new DWTException (code, msg); 264 266 }
