* {@inheritDoc}
*/
public void elementChanged(UmlModelElement element) {
attributesCompartment.removeAllLabels();
for (UmlProperty property : ((UmlClass) element).getAttributes()) {
Label label = new Label();
label.setSource(new UmlModelElementLabelSource(property));
attributesCompartment.addLabel(label);
}
operationsCompartment.removeAllLabels();
for (UmlProperty property : ((UmlClass) element).getMethods()) {
Label label = new Label();
label.setSource(new UmlModelElementLabelSource(property));
operationsCompartment.addLabel(label);
}
reinitMainCompartment();
invalidate();
}