* @return
*/
protected static String getShareProjectDescription(
ISarosSession sarosSession) {
JID inviter = sarosSession.getHost().getJID();
Set<IProject> projects = sarosSession.getProjects();
StringBuilder result = new StringBuilder();
result
.append(MessageFormat.format(
Messages.CollaborationUtils_user_invited_to_saros_session,
inviter.getBase(),
((projects.size() == 1) ? Messages.CollaborationUtils_project_singular_ending
: Messages.CollaborationUtils_project_plural_ending)));
for (IProject project : projects) {
result.append("\n - ").append(project.getName()); //$NON-NLS-1$