@Override
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
{
if (!(delegate instanceof ITextNode))
{
problems.add(new FXGInvalidChildNodeProblem(getDocumentPath(), child.getStartLine(),
child.getStartColumn(), getNodeName(), delegate.getNodeName()));
}
else if (delegate instanceof ITextNode && child instanceof ITextNode)
{
((ITextNode)delegate).addTextProperty(getNodeName(), (ITextNode)child, problems);
}
else
{
problems.add(new FXGInvalidChildNodeProblem(getDocumentPath(), getStartLine(),
getStartColumn(), child.getNodeName(), getNodeName()));
}
}