0

Is there any way to get the call hierarchy of a JSF bean method including Expression Language calls in eclipse?

I got a simple bean:

@ManagedBean
@ViewScoped 
public class MyBean {
    public String getHello() {
        return "Hello";
    }
}

And a simple JSF page:

<h:outputText value="#{myBean.demo}" />

With a CTRL click on #{myBean.demo} eclipse shows the getter.

But the call hierarchy for getHello() does not show the EL call.

Is there a way to see if a getter is used in any JSF page?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Jan
  • 641
  • 1
  • 6
  • 22

1 Answers1

5

JBoss Tools (for Java EE+Web) supports it. You can get it in Eclipse Luna (4.4.x) by Help > Install New Software and then entering the URL of this update site. In the list of available plugins components, scroll to the bottom and pick the option "JBoss Web and Java EE Development" (the remainder is not relevant for Java EE web dev).

enter image description here

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • This looks very promising. I'll give it a try. – Jan Jan 12 '15 at 12:59
  • For additional install/config instructions, see also http://balusc.blogspot.nl/2014/10/jsf-22-tutorial-with-eclipse-and-wildfly.html#InstallJBossTools It also ships with a visual editor which you really want to disable. – BalusC Jan 12 '15 at 13:07