private void createEditors(Composite parent)
{
/*
* Create a filtered view of attribute descriptors.
*/
BindableDescriptor descriptor = this.descriptor.only(
Predicates.not(new InternalAttributePredicate(false))).only(
new HasEditorPredicate());
if (filterPredicate != null)
{
descriptor = descriptor.only(filterPredicate);
}
/*
* CARROT-818: Check if there is anything for display.
*/
if (descriptor.attributeDescriptors.isEmpty())
{
createMessage(mainControl, this, "No attributes.");
}
/*
* Group attributes.
*/
descriptor = descriptor.group(grouping);
/*
* Create sections for attribute groups.
*/
for (Object groupKey : descriptor.attributeGroups.keySet())