Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/ViewerCell.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: 195908,198035,215069,215735 | 11 * - fix in bug: 195908,198035,215069,215735,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.ViewerCell; | 16 module dwtx.jface.viewers.ViewerCell; |
294 columnIndex += modifier; | 294 columnIndex += modifier; |
295 | 295 |
296 if (columnIndex >= 0 && columnIndex < row.getColumnCount()) { | 296 if (columnIndex >= 0 && columnIndex < row.getColumnCount()) { |
297 ViewerCell cell = row.getCellAtVisualIndex(columnIndex); | 297 ViewerCell cell = row.getCellAtVisualIndex(columnIndex); |
298 if( cell !is null ) { | 298 if( cell !is null ) { |
299 while( cell !is null ) { | 299 while( cell !is null && columnIndex < row.getColumnCount() - 1 && columnIndex > 0 ) { |
300 if( cell.isVisible() ) { | 300 if( cell.isVisible() ) { |
301 break; | 301 break; |
302 } | 302 } |
303 | 303 |
304 columnIndex += modifier; | 304 columnIndex += modifier; |
414 return false; | 414 return false; |
415 } else if (!row.opEquals(other.row)) | 415 } else if (!row.opEquals(other.row)) |
416 return false; | 416 return false; |
417 return true; | 417 return true; |
418 } | 418 } |
419 | 419 |
420 private int getWidth() { | |
421 return row.getWidth(columnIndex); | |
422 } | |
423 | |
420 private bool isVisible() { | 424 private bool isVisible() { |
421 return getBounds().width > 0; | 425 return getWidth() > 0; |
422 } | 426 } |
423 } | 427 } |