So if you have the Spring IDE (or STS) installed in your Eclipse you get really nice autocompletion in spring config files. So ctrl+space in the class="" will pop up all the classes. Or name="" on the <property /> will autocomplete bean properties. Really really useful, as typing class names by hand is slow and painful.

But... none of this was working with ACS for me. So this is what I found. First you really should be editing applicationContext.xml.in. But that isn't an xml file, so it doesn't like that. If you look for applicationContext.xml, its in the cloudstack project which is not a java project and has no classpath and thus autocompletion can't find your classes. So what I did was in client/

ln -s tomcatconf/applicationContext.xml.in applicationContext.xml

Now in cloud-client-ui you have applicationContext.xml at the root and when you open it you get autocompletion magic. Now if your on one of those operation systems that doesn't understand symlinks, I dunno. But don't fret, once I modularize spring (coming real soon....) the spring XML files will all be in the right place so you get this behaviour by default.

Darren

Reply via email to