if( dialog.open() != Window.CANCEL )
{
final String entityName = dialog.getValue();
final Element element = getModelElement();
final IValuePropertyActionsGalleryEntity entity = element.nearest( IValuePropertyActionsGallery.class ).getEntities().insert();
entity.setName( entityName );
( (Value<?>) property() ).write( entityName );
}
return null;