String prefix = null;
int numMessages = messages.length;
for(int i = 0; i < numMessages; i++)
{
IValidationMessage message = messages[i];
if(message.getSeverity() == IValidationMessage.SEV_ERROR)
{
prefix = errormarker;
}
else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
{
prefix = warningmarker;
}
else
{
prefix = "";
}if(message.getSeverity() == IValidationMessage.SEV_ERROR)
{
prefix = errormarker;
}
else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
{
prefix = warningmarker;
}
else
{
prefix = "";
}if(message.getSeverity() == IValidationMessage.SEV_ERROR)
{
prefix = errormarker;
}
else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
{
prefix = warningmarker;
}
else
{
prefix = "";
}if(message.getSeverity() == IValidationMessage.SEV_ERROR)
{
prefix = errormarker;
}
else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
{
prefix = warningmarker;
}
else
{
prefix = "";
}
returnBuffer
.append(prefix)
.append(" ")
.append(message.getLine())
.append(":")
.append(message.getColumn())
.append(":")
.append(message.getMessage())
.append("\n");
}
return returnBuffer.toString();
}