Welcome to the feature description/userguide.
NOTE Some features may be available only in yet unreleased versions, please see Struts2PluginChangeNotes for more information.
"Go To Action/Package" by name
Press Ctrl+Shift+Alt+N to quickly navigate to any Action/Package by simply entering its name (including wildcards):
Dedicated icons for configuration files
Dedicated icons for JAVA files (Actions)
Recognize Struts related files/classes at a glance throughout the IDE (Project/Packages View, Editor tabs, ..):
Struts 2 facet
All plugin configuration settings are bundled in a dedicated facet. Simply attach a new Struts 2 facet to any existing module, create a fileset and add your struts.xml files from all auto-scanned configuration files in your project and the plugin is ready to work:
Dedicated facet with configuration options
File Set manager
Detect struts.xml files not mapped to file sets
Library validator/setup for standard plugins (Spring, Tiles, JSF, ..)
Autodetection of Struts 2 facets
Existing struts.xml files are recognized upon opening your project and a new S2 facet is created automatically.
Integration with "New Project"
Autocompletion for all possible elements
Auto-completion is available for virtually all attributes, just give it a try:
Rename refactoring/Find Usages for all referencable elements
Need to refactor your S2 application? Just use the Rename refactoring (Shift+F6) or perform Find Usages (Alt+F7 or Ctrl+Alt+F7):
Navigation to referenced elements/JAVA-classes
Simply Ctrl-click (or press Ctrl+B) on any element to navigate to its declaration - or take a peek without leaving the current editor using Quick Definition Lookup (Ctrl+Shift+I).
Highlighting of configuration/reference errors
Errors are highlighted immediately in the editor, additional validation is triggered for Make Project (see "Validation" tab in facet for more options).
struts.xml: restrict resolving to result location depending on result-type (e.g. Velocity)
Various inspections for common configuration errors
Visually groups all relevant info with Autoscroll from/to source you're used from IDEA:
Navigation to/from corresponding Action-class
Show validation.xml node(s) under corresponding Action-class (like GUI-Designer forms)
Create corresponding validation.xml-template from Action
Navigation to Action-declaration in struts.xml
Simply click on the action icon in the left editor bar to quickly open up the corresponding entry(ies) in your struts.xml:
Highlight unused Actions, Quickfixes: Delete, Map in struts.xml
Autocompletion/navigation to result-declaration in struts.xml
Navigation to Action-declaration/class
Click on the Action-class icon to quickly open the corresponding JAVA-code or Ctrl+click on the "action"-attribute to go to the struts.xml-definition:
Autocompletion/navigation for form properties
Autocompletion/navigation for all suitable Tag attributes
CSS support for suitable tag attributes
Define inline-styles ("cssStyle") or reference existing CSS classes ("cssClass").
Basic syntax highlighting support
Full support for OGNL expressions including resolving of available properties
Integration with Tiles 2 (via Tiles 2 plugin)
Support for sitemesh.xml
Support struts2-spring-plugin (<action> "class" via bean from spring-context.xml)