[
https://issues.jboss.org/browse/JBIDE-10565?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-10565:
-----------------------------------------------
Let's consider a case from Java. Add code inside a Java method:
{code}
String s = "";
equals(s);
{code}
Now put cursor like that equals|(s) and press Ctrl+Space. You will have immediately:
{code}
equals(obj)(s)
{code}
I resent that. But it tells us one principle - CA does not parse forward when computing
and applying proposals. So, if we are going to show proposals for #|{xyz and follow the
same logic, it should result in #{name}{xyz. Once more, I resent that. The only
alternative is to propose nothing, as it is obvious that applying CA in #|{ is going to
break an existing EL token.
In description I mentioned .xml, and forgot about .jsp, but I did not forget about .java.
It was not mentioned just because in .java CA already did not provide suggestions for #|{,
so that the objective of this issue is to achieve consistency.
Wrong EL content assist inside token '#{'
-----------------------------------------
Key: JBIDE-10565
URL:
https://issues.jboss.org/browse/JBIDE-10565
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.3.0.M5
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.Beta1
EXECUTE: Type #{ in attribute value or in text node in xml.
EXECUTE: Set cursor inside that token #|{ and invoke content assist.
FAILURE: JBoss Tools provide all names available for EL (CDI named beans, Seam
components, JSF managed beans and resource bundles, etc.).
FAILURE: If a proposal 'abc' is selected for insertion, it is inserted in this
way: #abc}{.
ASSERT: JBoss Tools provides nothing for that position.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira