History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-22587
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Dmitry Avdeev
Reporter: Taras Tielkes
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

no completion/validation for some attributes of the 'lang' namespace

Created: 08 Oct 07 20:04   Updated: 06 Dec 07 18:52
Component/s: J2EE.Spring
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File lang-namespace-various.patch (6 kb)

Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-15716 Support for property name completion ... Resolved

Build: 7,330
Fixed in build: 7,508


 Description  « Hide
  1. no resolving for 'scope' attribute (all)
  2. no resolving for 'script-interfaces' attribute (jruby,bsh)
  3. no resolving for 'script-source' attribute (all)
  4. attribute 'refresh-check-delay' is declared as 'xsd:long' but modeled as 'Integer'
  5. no resolving for 'customizer-ref' attribute (groovy)

Attached patch solved the first 3.
It also removes from methods from com.intellij.spring.model.xml.lang.DynamicScript which were duplicate to methods on com.intellij.spring.model.xml.lang.SimpleScript.

I assume the fix for (4) should be made in DOM internals: at the moment it doesn't support Long type.

(5) can be easily fixed using the annotation-driven Converter from the patch attached to IDEADEV-17510: the specified type should be 'org.springframework.scripting.groovy.GroovyObjectCustomizer'



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 08 Oct 07 20:23 - edited
In addition, for <lang:jruby> and <lang:bsh>, the value of the 'script-interfaces' attribute could be used to implement getBeanClass(). While only the first specified interface can be returned through this method, it would allow bean reference completion from other beans (IDEADEV-18981) to work in most cases.

t800t8 - 15 Oct 07 05:31
No resolving for "name" attribute of <lang:property>

Taras Tielkes - 15 Oct 07 11:41
To support "name", IDEA (or a plugin) would have to parse the groovy/jruby/bsh language.

The other attributes mentioned in the issue description and first comment do not require such extensive support. In other words they could be supported in a bugfix release without much risk.


Dmitry Avdeev - 17 Oct 07 14:31
Thanks Taras. Your patch is applied.