Mercurial > projects > dwt-addons
diff 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 |
line wrap: on
line diff
--- a/dwtx/jface/viewers/ViewerRow.d Sun Jun 22 22:57:31 2008 +0200 +++ b/dwtx/jface/viewers/ViewerRow.d Sun Jul 06 23:30:07 2008 +0200 @@ -8,7 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation - * - fix in bug: 166346,167325,174355,195908,198035,215069 + * - fix in bug: 166346,167325,174355,195908,198035,215069,227421 * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ @@ -383,4 +383,8 @@ public StyleRange[] getStyleRanges(int columnIndex) { return (cast(ArrayWrapperT!(StyleRange)) getItem().getData(KEY_TEXT_LAYOUT ~ to!(String)(columnIndex))).array; } + + int getWidth(int columnIndex) { + return getBounds(columnIndex).width; + } }