[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1124) Code completion does not work for 'with' blocks
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Sat Aug 25 20:44:18 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1124?page=comments#action_12373860 ]
Mark Proctor commented on JBRULES-1124:
---------------------------------------
mvel has a with block to execute block setters on an object:
with ( object ) { field1 = value1, field2 = expression2 };
We use the macro process on "modify" to change:
modify ( object ) { field1 = value1, field2 = expression2 };
Into this:
@Modify with ( object ) { field1 = value1, field2 = expression2 };
this is the prefered way in Drools and MVEL to modify facts, as it sets the setters and calls modify in one go.
> Code completion does not work for 'with' blocks
> -----------------------------------------------
>
> Key: JBRULES-1124
> URL: http://jira.jboss.com/jira/browse/JBRULES-1124
> Project: JBoss Rules
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Eclipse IDE
> Affects Versions: 4.0.0.GA
> Reporter: Mark Proctor
> Assigned To: Philippe Ombredanne
> Fix For: 4.0.1
>
> Attachments: withCodeCompletion.JPG
>
>
> code completion should work for 'with' blocks. We also use a macro to make 'with' work with the 'modify' keyword.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list