Hi All,
I have few trouble setting up the play project on Intellij. The project is created by issuing the following command:
sbt new playframework/play-java-seed.g8
I had imported the project as an sbt project in Intellij. However, I couldn't able to analyse the controller class fully. For example, the class below:
package controllers;
import play.mvc.*;
/**
* This controller contains an action to handle HTTP requests
* to the application's home page.
*/
public class HomeController extends Controller {
/**
* An action that renders an HTML page with a welcome message.
* The configuration in the <code>routes</code> file means that
* this method will be called when the application receives a
* <code>GET</code> request with a path of <code>/</code>.
*/
public Result index() {
return ok(views.html.index.render());
}
}
The items in bold, Controller, Result, ok, I can't inspect them. I tried the following:
1. Enabled Play2 compiler for the current project. -- Doesn't help to solve the issue.
2. Right click on the project and add framework support -- Again doesn't help to solve the issue
Can someone kindly let me know how to set up the project properly, so that I could able to inspect all class in Controller and in other source folder?
Thanks.