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

Key: IDEA-12510
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Sergey Vasiliev
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

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

"propagation"/"isolation" attributes of <tx:method> should resolve to spring Propagation/Isolation enum classes

Created: 25 Apr 07 22:49   Updated: 21 May 07 14:07
Component/s: J2EE.Spring

Build: 6,913


 Description  « Hide
The "propagation"/"isolation" attributes values of the <tx:method> element correspond with enum members of org.springframework.transaction.annotation.Propagation and org.springframework.transaction.annotation.Isolation

It would be intuitive for attribute values to resolve to members of these respective enum classes.
An additional benefit will be that users can user Ctrl-Q to lookup details for a non-typical isolation/propagation level.

At the moment attribute values resolve to (intellij spring plugin) internal enum classes. (com.intellij.spring.model.xml.tx.Propagation/com.intellij.spring.model.xml.tx.Isolation)



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 21 May 07 14:07
The new "context" namespace in spring 2.1 also uses an enum value in an attribute. (org.springframework.core.typefilter.FilterType used in <component-scan> tag)

Perhaps an abstract converter class could implement this is a reusable way.
The pattern is simply:
1) Try to resolve against enum class from project classpath (so that JavaDoc is available for Ctrl-Q etc)
2) If enum PsiClass is not found (perhaps module libraries not configured properly) - then fall back to an internal enum (like com.intellij.spring.model.xml.tx.Isolation).