ZK IntelliJ Plugin 0.6 (for IntelliJ IDEA 233.2 – 253.*) and 0.7 (for IntelliJ IDEA 233.2 – 261.*) are now available on the IntelliJ Marketplace! These latest versions feature enhanced MVVM development support:
🎯Navigation Features
– MVVM Property Navigation: Enables developers to jump directly from property references in ZUL binding expressions (like @load(vm.name)) to their corresponding Java getter methods in the ViewModel.
– ViewModel ID Navigation: Provides navigation from the ViewModel identifier at the start of a binding chain directly to the ViewModel’s Java class. This allows quick access to the ViewModel implementation from any binding point in the ZUL file.
– Command Binding Navigation: Facilitates navigation from @command and @global-command annotation arguments to the server-side methods annotated with @Command or @GlobalCommand.
– Template URI Navigation: Allows navigation to static ZUL template file paths referenced within @load or @init expressions, such as templateURI="@load('/WEB-INF/template.zul')".
– ZUL Tag Navigation: Intercepts the default IntelliJ “Go to Declaration” behavior on ZUL element tag names. Instead of navigating to the XSD schema definition (which is rarely useful for ZUL development), it redirects navigation to the matching counterpart tag—clicking an opening jumps to the closing and vice versa. For self-closing tags, it navigates to the tag itself, effectively acting as a no-op that prevents unwanted jumps to the schema.
✨Completion Features
– ViewModel Property Completion: Provides smart code completion for properties and methods within data binding expressions based on the current ViewModel’s type.
– Command Name Completion: Offers a list of valid @Command and @GlobalCommand names defined in the active ViewModel when typing inside @command(…) or @global-command(…) annotations.
– Scope Variable Completion: Intelligent completion at the root of a binding expression that suggests available variables from different ZK scopes.
🪄Live Templates
– Version 0.7 comes with Live Templates — simply type grid, listbox, tree, ns, jspatch + Tab in ZUL or JS files to generate the template.
🙌Huge thanks to our community user Uipko Stikker of Stealth Maritime, who contributed the MVVM support enhancements!💯
These enhancements provide faster debugging and seamless navigation, and reduce friction between your zul templates and VM. Download Now and boost your productivity today! For technical details, please refer to the Documentation.
About the plugin: The ZK IntelliJ IDEA Plugin is a dedicated tool designed to enhance the development experience for ZK applications within the IntelliJ IDEA environment. It provides robust features such as intelligent code completion, syntax validation, and seamless navigation, helping developers to write ZK applications more efficiently and with greater accuracy. Learn more here >>