comparison dwtx/jface/viewers/ViewerRow.d @ 90:7ffeace6c47f

Update 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 23:30:07 +0200
parents 5df4896124c7
children
comparison
equal deleted inserted replaced
89:040da1cb0d76 90:7ffeace6c47f
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation 10 * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
11 * - fix in bug: 166346,167325,174355,195908,198035,215069 11 * - fix in bug: 166346,167325,174355,195908,198035,215069,227421
12 * Port to the D programming language: 12 * Port to the D programming language:
13 * Frank Benoit <benoit@tionex.de> 13 * Frank Benoit <benoit@tionex.de>
14 *******************************************************************************/ 14 *******************************************************************************/
15 15
16 module dwtx.jface.viewers.ViewerRow; 16 module dwtx.jface.viewers.ViewerRow;
381 * @since 3.4 381 * @since 3.4
382 */ 382 */
383 public StyleRange[] getStyleRanges(int columnIndex) { 383 public StyleRange[] getStyleRanges(int columnIndex) {
384 return (cast(ArrayWrapperT!(StyleRange)) getItem().getData(KEY_TEXT_LAYOUT ~ to!(String)(columnIndex))).array; 384 return (cast(ArrayWrapperT!(StyleRange)) getItem().getData(KEY_TEXT_LAYOUT ~ to!(String)(columnIndex))).array;
385 } 385 }
386
387 int getWidth(int columnIndex) {
388 return getBounds(columnIndex).width;
389 }
386 } 390 }