A
Arne Vajhøj
Peter said:But, now I'm puzzled as to how that's supposed to address the issue of
writing the import in the first place, which is what I was talking
about. I didn't really understand what was being suggested here, until
just now.
My concern was in the process of writing the code in the first place.
What I'm looking for is a command that, having typed the name of a type,
will immediately add an import for that type (displaying a context menu
when the type name is present in multiple packages). As I mentioned,
"shift-command-M" (bound to the "Add Import" menu command) does that,
but only sometimes.
I realize I can always come back after the fact and change the imports
(even without the key binding, there's the menu command which as a
one-time-event is practically as easy to use), but it seems to me that
if a wildcard import is sufficient at some point in the development
process, it's sufficient at other points.
If you prefer so then nobody can see if you write the code as:
- write wildcard imports of all the relevant packages
- write all methods
- convert the wildcard imports to single class imports
- check into source control
Arne