i
is defined in the companion object, not in the actual class. You can see the definition in the source here Menu.i
or in the scaladoc:
/**
* A convenient way to define a Menu item that has the same name as its localized LinkText.
* <pre>Menu.i("Home") / "index"</pre> is short-hand for <pre>Menu("Home", S.loc("Home", Text("Home")) / "index"</pre>
*/
def i(nameAndLink: String): PreMenu = Menu.apply(nameAndLink, S.loc(nameAndLink, scala.xml.Text(nameAndLink)))
/
is defined as part of PreMenu
and it allows you to specify where the menu loc gets served from.
If you are using eclipse, you can try the sbteclipse
plugin which should help make eclipse aware of your dependencies.