Menu

#243 auto import for interactions

open
nobody
None
5
2004-12-09
2004-12-09
No

It would be nice if immediately after compilation each
successfully compiled file’s package was added to the
interaction window’s class path. Many times I find
myself compiling a class and wanting to then observer
its methods in the interactions window—however, each
time I recompile the class the interactions window
requires me to type “import com.whatever.package.*”
before I can create an instance of my class. If the
package was auto imported each time, I go could to
straight to “new” after each compile. I would think
that the package should remain in the interactions
window classpath until the last file which exists in
the given package is closed within DrJava.

Discussion

  • Dan Smith

    Dan Smith - 2004-12-10

    Logged In: YES
    user_id=1060117

    Another cross-reference: request 988082 -- the same functionality
    is desired, but with a different interface. Typing imports is
    definitely one of the more painful features of the interactions
    pane, along with the difficulty in creating test objects (you can
    type out List<Integer> l = ..., and then scroll back and change it
    to l2, etc. each time you change it; or you can type List<Integer>
    l; l = ... and reassign to l each time), and the required casting of
    generic results (since they're treated as Objects).

    https://sourceforge.net/tracker/
    index.php?func=detail&aid=988082&group_id=44253&atid=438938

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.