Menu

#376 Code completion of java classes

closed-fixed
nobody
None
5
2008-05-10
2006-09-27
No

My environment:
Eclipse 3.2
PyDev 1.2.4
Java 1.5
Windows 2003 Server

When importing classes (that I have added to the
PYTHONPATH of my project) located in jar files, I
receive code completion for specifying package1 and
subpackage, but no for MyClass, when writing:

from package1.subpackage import MyClass

in addition, it complains with this error (at the left
column of the editor):

Unresolved import

The same happens with
import package1.subpackage.MyClass

When my Java code is unpackaged (outside of a jar
file), I have the same behavior, except that I don't
receive completion for package components.

On the other hand, code completion from the java.lang
package works flawlessly.

The code runs ok when hitting Ctrl-F9 and find the
referenced java class files. So the PYTHONPATH is set
correctly.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2008-05-10

    Logged In: YES
    user_id=617340
    Originator: NO

    This should be working from 1.3.12 onwards.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-05-10
    • status: open --> closed-fixed