{
if (session == null)
{
throw new IllegalArgumentException("ISession == null");
}
final ObjectTreeInternalFrame oif = new ObjectTreeInternalFrame(session);
getMainFrame().addWidget(oif);
// If we don't invokeLater here no Short-Cut-Key is sent
// to the internal frame
// seen under java version "1.4.1_01" and Linux
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
oif.setVisible(true);
oif.getObjectTreeAPI().selectRoot();
}
});
return oif;
}