public void currentObjAttributeChanged(AttributeDisplayEvent e) {
if (e.getEntity() == null)
return;
// update relationship selection
Attribute attr = e.getAttribute();
if (attr instanceof ObjAttribute) {
if (getSelectedComponent() != attributesPanel) {
setSelectedComponent(attributesPanel);
attributesPanel.setVisible(true);
}