> > Yes, the JDE needs reflection to determine the fully qualified name of > the class to be imported. Reflection is possible only with > compiled classes.
Actually, as far as I can tell, the fully qualified name returned by jde.util.JdeUtilities.getQualifiedName appears to only be determined by the path from the "root" of each class path entry, plus the name of the .class file. That is: - the class path contains /dir - a file is called /dir/pkg/subpkg/List.class - the fully qualified name will be given as pkg.subpkg.List And I think that that algorithm would make quite as much sense for uncompiled source files somewhere in jde-db-source-directories. You wouldn't be able to get to inner classes, but I don't think that that is an issue. I have looked briefly at side effects, and I think the following behaviours would also be changed: - jde-open-class-source could open uncompiled class files (which I think is good) - jde-parse-select-qualified-class-name would also display uncompiled source files, which I am not sure what it means - jde-wiz-implement-interface-internal, jde-wiz-implement-event-source-internal and jde-wiz-extend-abstract-class-internal would not work if one tried to implement an interface/abstract class defined in an uncompiled source file. So to handle that, one would probably have to change the interface to restrict searching to only compiled classes. Maybe Eric Friedman, who wrote the code, could correct me if I'm wrong. For me at least, it would be useful to be able to import a class that I haven't yet compiled. If others think so, I could look into modifying the Java code so that it also looks for source files and not just class files. / Petter
