On Wed, 26 Jul 2000, Jim Snyder wrote:
> The C-c C-v C-z allows you to put the cursor over a Java 1.* class name
> and using those three control letters add an import statement
> automatically at the top of the .java file (if not already there).
>
> Question:
>
> Can this functionality be extended to an in-house class? For example,
> putting the cursor over MyClass and using the three control character
> sequence, it adds "import com.mycompany.MyClass;" at the top of the
> current java source code?
So long as the classpath of classes you wish to import is in the
jde-global-classpath variable then you can do this.
Set your jde-global-classpath then ensure the classes to include have
been compiled. (It only works with compiled classes)
Then issue the jde-wiz-update-class-list command (C-c C-v C-q).
The class list will be updated and your classes can be imported.
- Mark (obsessive user of the import function).
(Should this be a FAQ?)