I recently added a fix for this problem, it will be in the next release. Javier
On Wed, 1 Dec 2004 12:31:39 +0100, Magnus Ljung <[EMAIL PROTECTED]> wrote: > Hi, > > I've just started using JDE and have a little problem with jde-import-all. > The problem stems from the fact that I have a dependency on a library > containing several jar files which all define the same class. > I.e the class p1.p2.p3.C is defined in several different jars. That means > that when I run jde-import-all I get a dialog with the following content: > > Select imports to insert. > > ( ) p1.p2.p3.C > ( ) p1.p2.p3.C > ( ) p1.p2.p3.C > ( ) p1.p2.p3.C > > [Ok] [Cancel] > > I would like to change jde-import-all to remove any duplicates. I tried to > do this by changing the definition of jde-import-all-filter to: > > (defun jde-import-all-filter (unqualified-imports &optional no-exclude) > "Generate a list of fully qualified names of classes to > import from UNQUALIFIED-IMPORTS, excluding classes specified > by `jde-import-exclude-imports' if NO-EXCLUDE is nil." > (remove-duplicates (mapcar > (lambda (unqualified-class) > (let ((qualified-imports > (jde-import-get-qualified-names unqualified-class))) > (if no-exclude > qualified-imports > (jde-import-exclude-imports > qualified-imports)))) > unqualified-imports))) > > But that didn't change anything. I have very little experience with writing > elisp so I don't even know if I managed to run the changed version of this > code. > > Any suggestions? > > Thanks, > /Magnus > >