properties.put(propertyName, linkActiveFormat);
}
else
{
//Multiple LinkFormat elements are not allowed.
problems.add(new FXGMultipleElementProblem(getDocumentPath(), getStartLine(),
getStartColumn(), propertyName));
}
}
else if (FXG_LINKHOVERFORMAT_PROPERTY_ELEMENT.equals(propertyName))
{
if (linkHoverFormat == null)
{
linkHoverFormat = (TextLayoutFormatNode)node;
linkHoverFormat.setParent(this);
if (properties == null)
properties = new HashMap<String, ITextNode>(3);
properties.put(propertyName, linkHoverFormat);
}
else
{
// Exception: Multiple LinkFormat elements are not allowed.
//Multiple LinkFormat elements are not allowed.
problems.add(new FXGMultipleElementProblem(getDocumentPath(), getStartLine(),
getStartColumn(), propertyName));
}
}
else if (FXG_LINKNORMALFORMAT_PROPERTY_ELEMENT.equals(propertyName))
{
if (linkNormalFormat == null)
{
linkNormalFormat = (TextLayoutFormatNode)node;
linkNormalFormat.setParent(this);
if (properties == null)
properties = new HashMap<String, ITextNode>(3);
properties.put(propertyName, linkNormalFormat);
}
else
{
//Multiple LinkFormat elements are not allowed.
problems.add(new FXGMultipleElementProblem(getDocumentPath(), getStartLine(),
getStartColumn(), propertyName));
}
}
else
{