Hi! From the JDEE documentation on Completing Expressions: Completion works only for compiled classes that reside in the classpath defined by jde-global-classpath, if set, otherwise by the CLASSPATH environment variable when the Beanshell starts. Thus, if the JDEE is unable to complete a method or field, make sure that the class that defines the field or method is compiled and exists on the classpath defined by jde-global-classpath, if set, otherwise by the CLASSPATH environment variable.
So try in order to have completion in this class: - set jde-global-classpath correctly (it includes current directory by default), - remove/comment "foo.g" line, - compile this class (C-c C-v C-c), - and then try to complete "foo.g". Regards, Przemysław Wojnowski On Mon, 9 Mar 2009 22:46:56 +0100, Gary <[email protected]> wrote: > Hi, > > I am trying to learn how to use jde before really using it in earnest, > so as a first step I have created a class "One" and am now trying to get > code completion (i.e. jde-complete-in-line) working. Let's say my code > looks like: > > 01 public final class One { > 02 > 03 private One() { > 04 } > 05 > 06 private void go() { > 07 System.out.println("I went"); > 08 } > 09 > 10 public static void main(final String[] args) { > 11 One foo = new One(); > 12 > 13 foo.g > 14 } > 15 } > > with the insertion point after the "g" in line 13. I then press > C-c C-v . and as expected something happens, but I'm not convinced it is > happening correctly. What I then see is a message saying > "Could not find type of foo Attempt to import One? (y or n)" > If I asnwer "n" then... it asks me the same thing again (grr!) and if I > answer "y" then, it does something (nothing apparent, but something) and > then... asks me yet again! Something's not right here... > > Any ideas? > > (emacs 21.2 (cygwin), jde 2.3.5.1) > > ------------------------------------------------------------------------------ > _______________________________________________ > jdee-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jdee-users ------------------------------------------------------------------------------ _______________________________________________ jdee-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-users
