if( m_reference.entry instanceof ClassEntry )
{
// look for calls to the default constructor
// TODO: get a list of all the constructors and find calls to all of them
BehaviorReferenceTreeNode node = m_controller.getMethodReferences( new ConstructorEntry( (ClassEntry)m_reference.entry, "()V" ) );
m_callsTree.setModel( new DefaultTreeModel( node ) );
}
else if( m_reference.entry instanceof FieldEntry )
{
FieldReferenceTreeNode node = m_controller.getFieldReferences( (FieldEntry)m_reference.entry );
m_callsTree.setModel( new DefaultTreeModel( node ) );
}
else if( m_reference.entry instanceof MethodEntry )
{
BehaviorReferenceTreeNode node = m_controller.getMethodReferences( (MethodEntry)m_reference.entry );
m_callsTree.setModel( new DefaultTreeModel( node ) );
}
else if( m_reference.entry instanceof ConstructorEntry )
{
BehaviorReferenceTreeNode node = m_controller.getMethodReferences( (ConstructorEntry)m_reference.entry );
m_callsTree.setModel( new DefaultTreeModel( node ) );
}
m_tabs.setSelectedIndex( 2 );
redraw();