### Eclipse Workspace Patch 1.0 #P org.eclipse.ui.views Index: src/org/eclipse/ui/views/properties/PropertySheetEntry.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetEntry.java,v retrieving revision 1.24 diff -u -r1.24 PropertySheetEntry.java --- src/org/eclipse/ui/views/properties/PropertySheetEntry.java 8 May 2006 20:53:18 -0000 1.24 +++ src/org/eclipse/ui/views/properties/PropertySheetEntry.java 25 Jun 2006 00:12:14 -0000 @@ -245,7 +245,7 @@ PropertySheetEntry entry = createChildEntry(); entry.setDescriptor(d); entry.setParent(this); - entry.setPropertySourceProvider(propertySourceProvider); + entry.setPropertySourceProvider(getPropertySourceProvider(values[0])); entry.refreshValues(); newEntries[i] = entry; } @@ -569,7 +569,7 @@ entry = createChildEntry(); entry.setDescriptor(d); entry.setParent(this); - entry.setPropertySourceProvider(propertySourceProvider); + entry.setPropertySourceProvider(getPropertySourceProvider(values[0])); entriesChanged = true; } entry.refreshValues(); @@ -710,6 +710,19 @@ } /** + * @param object + * @return + */ + public IPropertySourceProvider getPropertySourceProvider(Object object) { + if (propertySourceProvider != null) { + return propertySourceProvider; + } else { + return (IPropertySourceProvider) Platform.getAdapterManager() + .getAdapter(object, IPropertySourceProvider.class); + } + } + + /** * Set the value for this entry. *

* We set the given value as the value for all our value objects. We then