Session session = cli.getSession();
StringBuilder sb = new StringBuilder();
try
{
PlayerSession p = (PlayerSession)session;
DMessageCounter cnt = p.getMessageCounter();
sb.append(getLocalizationManager().getLocalizedTextString("key16")); //$NON-NLS-1$
sb.append(m_newline);
for(int i=0; i<=DMessage.InSIZE; i++)
{
long amt = cnt.getInCount(i);
if (amt > 0)
{
sb.append('\n');
sb.append(DMessage.inTypeName(i));
sb.append(" = "); //$NON-NLS-1$
sb.append(amt);
}
}
sb.append("\n\n"); //$NON-NLS-1$
sb.append(getLocalizationManager().getLocalizedTextString("key17")); //$NON-NLS-1$
sb.append("\n"); //$NON-NLS-1$
for(int i=0; i<=DMessage.OutSIZE; i++)
{
long amt = cnt.getOutCount(i);
if (amt > 0)
{
sb.append('\n');
sb.append(DMessage.outTypeName(i));
sb.append(" = "); //$NON-NLS-1$