if (element instanceof TreeNodeContainer)
{
Object child = ((TreeNodeContainer) element).data;
if (child instanceof ClassDefinition)
{
ClassDefinition classDef = (ClassDefinition) child;
return classDef.getName();
}
if (child instanceof InstanceVariableDefinition)
{
InstanceVariableDefinition insVarDef = (InstanceVariableDefinition) child;