* <!-- end-user-doc -->
* @generated NOT
*/
private void updateContents() {
StructuralDatatypeEditPart editpart = StructuralDatatypeEditPart.this;
Classifier element = (Classifier) editpart.resolveSemanticElement();
EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
.getType(OntoUML.diagram.edit.parts.StructuralDatatypeAttributeCompartmentEditPart.VISUAL_ID));
if (compartmentEditPart != null) {
if (element.getAttribute().size() == 0)
((View) compartmentEditPart.getModel()).setVisible(false);
else {
if (((View) compartmentEditPart.getModel()).isVisible() == false)
((View) compartmentEditPart.getModel())
.setVisible(true);