* @generated NOT
*/
private void updateContents() {
CategoryEditPart editpart = CategoryEditPart.this;
Classifier element = (Classifier) editpart.resolveSemanticElement();
EditPart compartmentEditPart = getChildBySemanticHint(OntoUML.diagram.part.OntoUMLVisualIDRegistry
.getType(OntoUML.diagram.edit.parts.CategoryAttributeCompartmentEditPart.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);
else {
View view = (((View) (compartmentEditPart).getModel()));
DrawerStyle drawerStyle = (DrawerStyle) view
.getStyle(NotationPackage.eINSTANCE