Community
Participate
Working Groups
Create a target element from the Generic Host target type, there is no icon displayed for the new created tree node in Remote Environment View.
I investigated this bug and found that TableTreeItem doesn't allow user to set image on first column, as the following codes indicates: public void setImage (int index, Image image) { checkWidget(); int columnCount = Math.max(parent.getTable().getColumnCount(), 1); if (index <= 0 || index >= columnCount) return; if (images.length < columnCount) { Image[] newImages = new Image[columnCount]; System.arraycopy(images, 0, newImages, 0, images.length); images = newImages; } images[index] = image; if (tableItem != null) tableItem.setImage(index, image); } I guess the reason is that TableTreeView reserves the first column to display the expand/collapse (+/-) icons. I suggest to use the TreeViewer instead of TableTreeViewer, the advantages are: 1. The TableTreeViewer is deprecated 2. TreeViewer can display hierarchy relationship, and display icon for the first column. 3. Replacing the TableTreeViewer with TreeViewer, will not bring many changes and cause regression defects.
Added icon that has been suggested on bug #225269.