As part of implementing Beanshell, I want to incorporate an ‘Expression Builder’ that will allow you to build basic expressions by via a gui.
I did a bit of a search hoping to find some existing source for such a beastie without luck. If anyone knows of some existing open source, I would appreciate it.
I have already written a simple version, but am not particularly happy with it. It needs to be richer and as a model, I am now looking at the Microsoft Access expression builder. Anyone have any comments, or know of a really well thought out Expression Builder?
As part of teh expression Builder, I am planning to add some more ‘VASSAL level reflection’ to property traits. I need to be able to determine the names of Properties that specific traits expose. I plan to add a new Interface PropertyNameSource that implenents the method
public List getPropertyNames();
that returns a list of property names exposed by a trait. I don’t believe this will cause any problems with existing code.
Allows you to build up an arbitrarily complex expression by selecting appropriate elements via drop-down lists/buttons/other GUI elements. Drop-down lists of stuff like Global Properties in module, Properties available in traits in counter, Java operators, Beanshell functions etc.
That’s what I figure. I did one version, but I don’t like it much. The problem is getting a usable dialog as much as what goes into it. SQL Filter builders are very similiar. I was hoping someone could point to one in product X that works really well. There is in TOAD for ORACLE that works quite well.