private string getStereotypeString(UML.Extended.UMLItem element)
{
string stereotypeString = string.Empty;
int maxLength = 20;
if (element.stereotypes.Count > 0)
{
stereotypeString = "«";
foreach (UML.Profiles.Stereotype stereotype in element.stereotypes)
{
if (stereotypeString.Length > 1)
{
stereotypeString += ", ";
}
stereotypeString += stereotype.name;
if (stereotypeString.Length > maxLength)
{
stereotypeString = stereotypeString.Substring(0,maxLength- 2) + "..";
}
}
stereotypeString += "» ";
}
return stereotypeString;
}