Community
Participate
Working Groups
I implemented a LabelProvider which dynamically sets an image for a PropertySheetEntry in the PropertySheetViewer. If the image is set once it cannot be removed later on by returning null in the method 'getImage'. The bug is caused by the the method 'updateEntry' in the class 'org.eclipse.ui.views.properties.PropertySheetViewer' - see bellow. The statement 'if( image != null)' avoids removing the image if it has been set once. private void updateEntry(IPropertySheetEntry entry, TableTreeItem item) { item.setData(entry); item.setText(0, entry.getDisplayName()); item.setText(1, entry.getValueAsString()); Image image = entry.getImage(); if (image != null) item.setImage(1, image); updatePlus(entry, item); }
*** This bug has been marked as a duplicate of 10001 ***