{
return ImageFactory.getImageIcon( ImageNames.ICON_PROJECT );
}
else if( this.lastSelectedNode instanceof ItemType )
{
ItemType itemType = (ItemType) this.lastSelectedNode;
if( itemType.getType() == TaskType.EMAIL )
{
return ImageFactory.getImageIcon( ImageNames.ICON_MAIL );
}
else if( itemType.getType() == TaskType.MEETING )
{
return ImageFactory.getImageIcon( ImageNames.ICON_MEETING );
}
else if( itemType.getType() == TaskType.PHONE )
{
return ImageFactory.getImageIcon( ImageNames.ICON_TELEPHONE );
}
else if( itemType.getType() == TaskType.TASK )
{
return ImageFactory.getImageIcon( ImageNames.ICON_TASK );
}
else
{
logger.finest( "Need to add icon for TaskType: " + itemType.getType() );
return super.getLeafIcon();
}
}
else
{