Пример #1
0
        /// <summary>
        ///     Creates the source text which corresponds to this step
        /// </summary>
        /// <returns></returns>
        public SourceText CreateSourceText()
        {
            SourceText retVal = (SourceText)acceptor.getFactory().createSourceText();

            retVal.Name = getDescription();

            if (!string.IsNullOrEmpty(Comment) && Comment.Trim() != "-")
            {
                SourceTextComment comment = (SourceTextComment)acceptor.getFactory().createSourceTextComment();
                comment.Name = Comment;
                retVal.appendComments(comment);
            }

            return(retVal);
        }