Auto-correction similar Netbeans? [message #756247] |
Fri, 11 November 2011 16:29 |
membersound Messages: 5 Registered: November 2011 |
Junior Member |
|
|
Hi,
several questions getting started with Eclipse:
1.) If I use netbeans and write:
String name;
if (name == "membersound") {
}
I'll be getting a hint: "use equals() and reverse operands", beeing able to auto transform it to equals statement.
How can I achieve similar behaviour in eclipse?
2.) Further, using JBoss Tools Palette:
How can I tell eclipse to use closing tags within a statement, eg:
instead of
<h:outputText value=""></h:outputText>
?
If I manually write the tags everything's fine. But using the JBoss Tools Palette Trag+Drop elements, they always include these needless closing tags </h:...>
3.) Again JBoss Tools: how can I use code assistant with EL Expression? For h:, f: tags etc everything works finde, but value="#{}" and pressing ctrl-space results in a blank assistant field, even though having a @ManagedBean declared.
(if I would add my class to managedbean in faces-config, code completion with EL Expression works as expected! but I do want to use annotations, why is completion not working with that?)
/update: I found out that managed beans in xhtml pages are only recognized if they are named. so if I write @ManagedBean(name = "customerBean") it works with content assistent code completion. HOWEVER there is no check performed for the EL Expressions beeing valid. I might aswell write #{customerBean.age} and eclipse does not complain that .age does not exist.
Thanks alot
[Updated on: Sat, 12 November 2011 15:17] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10173 seconds