propertyDescriptor.setEditorClass(cls);
}
// Instantiate and initialize the editor
PropertyEditor pe = (PropertyEditor) ReflectUtil.instantiate(cls, PropertyEditor.class, "property editor");
pe.initialize(propertyDescriptor.getEditorParamString());
pe.setPropertyName(propertyDescriptor.getName());
pe.setReadonly(propertyDescriptor.isReadOnly());
pe.setPropertyBrowser(propertyBrowser);
// Instantiate the property validator if desired
if (propertyDescriptor.getValidatorClassName() != null)
{
cls = propertyDescriptor.getValidatorClass();
if (cls == null)
{
cls = PropertyEditorMgr.getInstance().findPropertyValidator(propertyDescriptor.getValidatorClassName());
if (cls != null)
{
propertyDescriptor.setValidatorClass(cls);
}
}
if (cls != null)
{
PropertyValidator pv = (PropertyValidator) ReflectUtil.instantiate(cls, PropertyValidator.class, "property validator");
pe.setValidator(pv);
}
}
// Provide the object to edit
if (object != null)
{
pe.setObject(object);
}
// Make it belong to this node
pe.setOwner(this);
propertyEditor = pe;
}
catch (Exception e)
{