comparison dwt/custom/TableCursor.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 a5afe31f5cdd
children 36f5cb12e1a2
comparison
equal deleted inserted replaced
211:ff59aeb96cac 212:ab60f3309436
436 Rectangle imageSize = image.getBounds(); 436 Rectangle imageSize = image.getBounds();
437 int imageY = (size.y - imageSize.height) / 2; 437 int imageY = (size.y - imageSize.height) / 2;
438 gc.drawImage(image, x, imageY); 438 gc.drawImage(image, x, imageY);
439 x += imageSize.width; 439 x += imageSize.width;
440 } 440 }
441 char[] text = row.getText(columnIndex); 441 String text = row.getText(columnIndex);
442 if (text.length > 0) { 442 if (text.length > 0) {
443 Rectangle bounds = row.getBounds(columnIndex); 443 Rectangle bounds = row.getBounds(columnIndex);
444 Point extent = gc.stringExtent(text); 444 Point extent = gc.stringExtent(text);
445 // Temporary code - need a better way to determine table trim 445 // Temporary code - need a better way to determine table trim
446 char[] platform = DWT.getPlatform(); 446 String platform = DWT.getPlatform();
447 if ("win32"==platform) { //$NON-NLS-1$ 447 if ("win32"==platform) { //$NON-NLS-1$
448 if (table.getColumnCount() is 0 || columnIndex is 0) { 448 if (table.getColumnCount() is 0 || columnIndex is 0) {
449 x += 2; 449 x += 2;
450 } else { 450 } else {
451 int alignmnent = column.getAlignment(); 451 int alignmnent = column.getAlignment();