Révision 1029
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 1029) | ||
|---|---|---|
| 421 | 421 |
Image trailingImage = (Image)item.getImage(); |
| 422 | 422 |
if (trailingImage != null) {
|
| 423 | 423 |
//int x = event.x + event.width + IMAGE_MARGIN; |
| 424 |
int x = event.x - 20; |
|
| 424 |
int x = event.x + event.width; |
|
| 425 |
//int x = event.x - 20; |
|
| 426 |
//int x = event.x - 5; |
|
| 425 | 427 |
int itemHeight = treeViewer.getTree().getItemHeight(); |
| 426 | 428 |
int imageHeight = trailingImage.getBounds().height; |
| 427 | 429 |
int y = event.y + (itemHeight - imageHeight) / 2; |
| 430 |
//int y = event.y + 5; |
|
| 428 | 431 |
|
| 429 | 432 |
event.gc.drawImage(icon, x, y); |
| 430 | 433 |
//event.gc.drawImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_ETOOL_SAVE_EDIT_DISABLED), x, y); |
Formats disponibles : Unified diff