<br>
I&#39;ve been working on the editor today and had some thoughts.<br>
<br>
1. it would be nice to trigger the auto-completion when the user hits
&quot;space&quot; - I didn&#39;t see an easy way to do it in the editor class<br>
<br>
2. it would be nice to further filter the auto-completion so it only
shows the phrases for that particular object. right now I show all
matching phrases. In order to be able to filter by object, the DSL
format would need to be extended to include more metadata. currently
each entry looks like this.<br>
<br>
[when]- is empty=userId == userid, recommendation == null<br>
<br>
In the example I created, userId is an attribute of many objects and is
used to to join between them. if we extend the format so that
object.attribute mappings have extra metadata like below, the DSL
utility can then group the mappings by object type.<br>
<br>
[when][com.my.Reponse]- is empty=userId == userid, recommendation == null<br>
<br>
The response object looks like this<br>
<br>
public class Response {<br>
&nbsp;&nbsp;&nbsp; private String userId;<br>
&nbsp;&nbsp;&nbsp; private Recommendation recommendation;<br>
}<br>
<br>
the customer object<br>
<br>
public class Customer {<br>
&nbsp;&nbsp;&nbsp; private String first;<br>
&nbsp;&nbsp;&nbsp; private String middle;<br>
&nbsp;&nbsp;&nbsp; private String last;<br>
&nbsp;&nbsp;&nbsp; private String userId;<br>
&nbsp;&nbsp;&nbsp; private String emailAddress;<br>
}<br>
<br>
obviously, if the format is extended, it could cause backward compatability issues.<br>
<br>
peter<br>