Bug 189999 [PropertiesView] [PropertiesView] Setting 1 value causes very slow recursive refresh
I have a properties with a hierarchy. Everything is read-only except for the leaf nodes. Setting a value takes about 5 seconds on my Core2Duo and seems to have possibly gotten even slower in RC2. This stems from the call to PropertySheetEntry.refreshFromRoot in the setValue method. Why should 1 value cause a total refresh? If other values were dependent, shouldn't they have listeners? This is a big problem for me as it will be very hard for my users to be productive with such a slow interface. I realize its late to get something in for 3.3. If there is a workaround, I would really like to know about it so I don't have to reimplement the property view.
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.swt.widgets.Widget;
import org.eclipse.ui.internal.views.properties.PropertiesMessages;
/**
 * The PropertySheetViewer displays the properties of objects. The model for the
 * viewer consists of a hierarchy of <code>IPropertySheetEntry</code>.
 * <p>
 * This viewer also supports the optional catogorization of the first level
 * <code>IPropertySheetEntry</code> s by using instances of
 * <code>PropertySheetCategory</code>.
 *  
 */
class PropertySheetViewer extends Viewer {
    
    private Object[] input;
    
    private IPropertySheetEntry rootEntry;
    
    private PropertySheetCategory[] categories;
    
    private Tree tree;
    private TreeEditor treeEditor;
    private static String[] columnLabels = {
            PropertiesMessages.PropertyViewer_property, PropertiesMessages.PropertyViewer_value };