Mercurial > projects > dwt-win
comparison dwt/dnd/DropTarget.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 3665cb9211b2 |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
112 | 112 |
113 // interfaces | 113 // interfaces |
114 _IDropTargetImpl iDropTarget; | 114 _IDropTargetImpl iDropTarget; |
115 int refCount; | 115 int refCount; |
116 | 116 |
117 static final char[] DEFAULT_DROP_TARGET_EFFECT = "DEFAULT_DROP_TARGET_EFFECT"; //$NON-NLS-1$ | 117 static final String DEFAULT_DROP_TARGET_EFFECT = "DEFAULT_DROP_TARGET_EFFECT"; //$NON-NLS-1$ |
118 static final char[] DROPTARGETID = "DropTarget"; //$NON-NLS-1$ | 118 static final String DROPTARGETID = "DropTarget"; //$NON-NLS-1$ |
119 | 119 |
120 /** | 120 /** |
121 * Creates a new <code>DropTarget</code> to allow data to be dropped on the specified | 121 * Creates a new <code>DropTarget</code> to allow data to be dropped on the specified |
122 * <code>Control</code>. | 122 * <code>Control</code>. |
123 * Creating an instance of a DropTarget may cause system resources to be allocated | 123 * Creating an instance of a DropTarget may cause system resources to be allocated |
241 refCount++; | 241 refCount++; |
242 return refCount; | 242 return refCount; |
243 } | 243 } |
244 | 244 |
245 protected void checkSubclass () { | 245 protected void checkSubclass () { |
246 char[] name = this.classinfo.name; | 246 String name = this.classinfo.name; |
247 char[] validName = DropTarget.classinfo.name; | 247 String validName = DropTarget.classinfo.name; |
248 if (validName!=/*eq*/name) { | 248 if (validName!=/*eq*/name) { |
249 DND.error (DWT.ERROR_INVALID_SUBCLASS); | 249 DND.error (DWT.ERROR_INVALID_SUBCLASS); |
250 } | 250 } |
251 } | 251 } |
252 | 252 |