reformated
adapted to new component::getallattributes
fixed empty attributes in component editor