rostanek / freemarker-support-for-netbeans

FreeMarker support for NetBeans including syntax coloring, parsing etc. new features will be added soon.
GNU General Public License v3.0
19 stars 7 forks source link

understand @ftlvariable and provide completion from java types #3

Closed mkleint closed 8 years ago

mkleint commented 8 years ago

eg for [#-- @ftlvariable name="addedComment" type="com.atlassian.bamboo.comment.Comment" --]

rostanek commented 8 years ago

I don't recognize this keyword. Do you mean it should treat this comment as a hint for code completion? Sounds interesting. Parsing content of comment should be easy, but completion of java types seems hard. I will see what I can do.

mkleint commented 8 years ago

i'm not sure myself how it works or how the standard is defined, googling around mostly leads me to intellij pages, most people at the office use it, so I assume it's somehow working and useful.

rostanek commented 8 years ago

I have managed to implement that type of code completion. You can check it in version 1.7 which I have released today. It should suggest fields of class defined in type attribute, but the class has to be in the same project.