I am currently writing a project in Scala in Eclipse and it's a real hassle having to type whole package names to get to the classes I've written. For example:
If I write a class Sender in package com.ab.cd.ef.gh then whenever I try and use that object I have to do something like:
val sender = com.ab.cd.ef.gh.Sender.getSender
or something similar. Is there a way to set the interpreter so that I only have to type in
val sender = Sender.getSender
?
use import com.ab.cd.ef.gh._
to import the whole package. See here for more details on scala import statements
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With