Bug 6233 keep property value if IPropertySource.getEditableValue returns null
If IPropertySource is appearing in the property sheet as the value of a property of some other IPropertySource then the source is asked for getEditableValue. If the returned value is null, then the PropertySheetEntry should use the original value, and not null value. For example, my PropertySource contains a property with value of type jdt.IType. The PropertySource for IType returns null in getEditableValue, and this null is actually used by PropertySheetEntry as the edit value; the consequence is that CellEditor provided in PropertyDescriptor of the property does not work. @see PropertySheetEntry#getEditValue
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaElementProperties.java
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package org.eclipse.jdt.internal.ui;
import org.eclipse.jface.viewers.IBasicPropertyConstants;
import org.eclipse.ui.views.properties.IPropertyDescriptor;
import org.eclipse.ui.views.properties.IPropertySource;
import org.eclipse.ui.views.properties.PropertyDescriptor;
import org.eclipse.jdt.core.IJavaElement;
public class JavaElementProperties implements IPropertySource {
	
	private IJavaElement fSource;
	
	
	static private IPropertyDescriptor[] fgPropertyDescriptors= new IPropertyDescriptor[1];
	{
		PropertyDescriptor descriptor;
		
		descriptor= new PropertyDescriptor(IBasicPropertyConstants.P_TEXT, JavaUIMessages.getString("JavaElementProperties.name")); 
		descriptor.setAlwaysIncompatible(true);
		fgPropertyDescriptors[0]= descriptor;
	}