}
editor.getProjectTreeView().getSelectionModel().setSelectionPath(
buildTreePath(o, editor));
if (path instanceof DbAttribute) {
AttributeDisplayEvent event = new AttributeDisplayEvent(editor
.getProjectTreeView(), (Attribute) path, ((Attribute) path)
.getEntity(), ((Attribute) path).getEntity().getDataMap(), domain);
event.setMainTabFocus(true);
editor.getDbDetailView().currentDbAttributeChanged(event);
}
if (path instanceof ObjAttribute) {
AttributeDisplayEvent event = new AttributeDisplayEvent(editor
.getProjectTreeView(), (Attribute) path, ((Attribute) path)
.getEntity(), ((Attribute) path).getEntity().getDataMap(), domain);
event.setMainTabFocus(true);
editor.getObjDetailView().currentObjAttributeChanged(event);
}
if (path instanceof DbRelationship) {
RelationshipDisplayEvent event = new RelationshipDisplayEvent(editor
.getProjectTreeView(), (Relationship) path, ((Relationship) path)
.getSourceEntity(), ((Relationship) path)
.getSourceEntity()
.getDataMap(), domain);
event.setMainTabFocus(true);
editor.getDbDetailView().currentDbRelationshipChanged(event);
}
if (path instanceof ObjRelationship) {
RelationshipDisplayEvent event = new RelationshipDisplayEvent(editor
.getProjectTreeView(), (Relationship) path, ((Relationship) path)
.getSourceEntity(), ((Relationship) path)
.getSourceEntity()
.getDataMap(), domain);
event.setMainTabFocus(true);
editor.getObjDetailView().currentObjRelationshipChanged(event);
}
}
}