[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=29404#action_29404
 ] 

Hudson CI server commented on MAGNOLIA-3276:
--------------------------------------------

Integrated in !http://hudson.magnolia-cms.com/images/16x16/blue.gif! 
[magnolia_main-trunk 
#1874|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/1874/]
     MAGNOLIA-3276 added noop()


> Add noop to nodebuilder
> -----------------------
>
>                 Key: MAGNOLIA-3276
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3276
>             Project: Magnolia
>          Issue Type: New Feature
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 5.0
>
>
> When using the node builder api, we sometimes want to use ternary operations, 
> where a noop() would be useful.
> Example:
> {code}
> new ModuleNodeBuilderTask("test paragraph", "", ErrorHandling.strict,
>                 getNode("paragraphs").then(
>                         addNode(name, "mgnl:contentNode").then(
>                                 addProperty("templatePath", templatePath),
>                                 addProperty("type", type),
>                                 modelClass != null ? 
> addProperty("modelClass", modelClass.getName()) : noop()
>                         )
>                 )
>         )
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to