Status
Support for OGNL-expressions is currently under development for upcoming IDEA 11.
The goal is to support OGNL-expressions everywhere in Struts 2 applications in the same way as done for EL-expressions in JSPs.
Symbol |
Status |
---|---|
fully supported |
|
partly supported |
|
not done yet |
|
future? |
Editor highlighting
Syntax highlighting
Basic syntax highlighting (identifiers, numbers, string literals, keywords, ..)
Escape sequences in strings
Highlight valid/invalid escape sequences
Semantic highlighting
Highlight missing closing brackets, parentheses, expressions, ...
Highlight matching parentheses, brackets and braces
Color settings page
Settings->Editor->Colors & Fonts->OGNL
Customize the appearance (color, style) to your needs:
Completion
Auto-complete closing quote/tick
Auto-complete closing '}'
Will be inserted automatically after typing "%{" and "{".
Keywords
Context-sensitive variants.
Identifiers
Navigation
Go To Declaration
for identifiers
Go To Code references
Navigate to Class/Method references.
Documentation
QuickDoc
Provide quick documentation on hovering over elements (type, name).
Editing
CTRL+W support
Expand selected part of expression semantically by repeatingly pressing CTRL-(Shift)-W:
Live templates
Settings->Live Templates
Create your own OGNL-specific live templates (Context "OGNL") or use one of the predefined templates.
NOTE Expanding live templates in injected context works with CTRL+J
Smart Enter
Complete expression, e.g. adding missing closing ")", "}"
Surround With
Provide specific "Surround with.." functionality.
Basic formatting
Provide basic whitespace-formatting settings, e.g. required space before/after operator, identifier