"Paul Ebermann" <[EMAIL PROTECTED]> writes:

> "Javier S. Lopez" skribis:
> 
> > "Paul Ebermann" <[EMAIL PROTECTED]> writes:
> > 
> > > "Javier S. Lopez" skribis:
> > > 
> > > > This is not going to be true all the time.
> > > 
> > > But IF it is true, it could be choosen?
> >
> > The question is how will jde know which one to choose?
> > You have two interfaces with the same unqualified name, and it is perfectly 
> > acceptable to implement either one of them, since it is not require for 
> > an interface to be part of the same package to be implemented.
> 
> If I normally only write
> 
> ---
> package de.dclj.paul.collections;
> 
> class CustomArrayList implements CustomList
> {
> 
> }
> ---,
> the Compiler would (automatically) choose
> de.dclj.paul.collections.CustomList,
> not de.dclj.paul.tools.CustomList.
> 
> Why the Template-Generator could not
> behave identically?
The template generator works slightly different from the compiler. 
The compiler uses imports to decide which classes to use. 
The template generator does not have this advantage. There are no imports
to use. So it must be to the user, to decide which one to use.

Javier
> If in the same package (or java.lang) is no
> so-named Interface, the choose-Dialog is perfect.
> 
> But that is not very bad, I just got
> reminded that I forgot to delete the
> old classfiles (in the tools-Package).
> 
> Paul
> 

-- 
Javier S. Lopez                 
[EMAIL PROTECTED]            Forum Systems, Inc.
(781) 263-5406                  40 Williams St., Suite G20,
http://www.forumsys.com         Wellesley, MA 02481

Reply via email to