thymeleaf-extras-eclipse-plugin icon indicating copy to clipboard operation
thymeleaf-extras-eclipse-plugin copied to clipboard

Code completion for expressions

Open j-maly opened this issue 11 years ago • 4 comments

Do you plan to add support for suggestions for expressions? Is something like that (type safety) even achievable with thymeleaf?

What I mean is if I type "${person.", the IDE would suggest firstName + lastName.

j-maly avatar Nov 11 '14 15:11 j-maly

Like IntelliJ 14? This would be great ;-)

ldittmar81 avatar Nov 11 '14 15:11 ldittmar81

I think it's achievable in Eclipse, but I don't think I'll be able to get around to implementing this enhancement. I find myself using IntelliJ more these days, so don't spend as much time on the Eclipse plugin like I used to.

Always happy to accept contributions though hint hint :)

ultraq avatar Nov 14 '14 06:11 ultraq

Has there been any progress in implementing this feature?

humphreygao avatar Feb 10 '20 06:02 humphreygao

I think the biggest issue for that might be where it is supposed to get information about the available objects from. What might work is to first require a hint for the types in comments (something like <!--/*VAR someVariable:java.lang.String */--> and later add another feature to automatically detect these in Spring projects (specifically look for Model#addAttribute and ignore all other ways to add attributes which would require a dependency on JDT and would be incomplete but it would be a huge improvement).

danthe1st avatar Apr 04 '24 11:04 danthe1st