Completion on FQCN for JAXB ObjectFactory doesn't do the completion [message #504787] |
Tue, 22 December 2009 11:54  |
Eclipse User |
|
|
|
I have some code that uses JAXB. There are several places where I instantiate an ObjectFactory to create some related objects. As I'm using more than one ObjectFactory in a class, I specify the FQCN for the ObjectFactory, which is a little annoying. So, I figure I should be able to use completion to save some keystrokes.
I enter "new" followed by the beginning of the package path, and that nicely lets me complete the rest of the package path. I then enter "." (period) and that brings up the completion menu at that point. The menu has three items, consisting of "ObjectFactory()", the class name the ObjectFactory would be creating, and the constructor for the class name. In any case, "ObjectFactory" is the first one in the list, and it's highlighted, so I just press Enter, as that's the one I want.
What I get with that is ... nothing. When I pressed Enter on the menu, it didn't insert "ObjectFactory()". It didn't insert anything.
I then manually enter "ObjectFactory()" and then ".". It then brings up the completion menu for the methods of that ObjectFactory. I select the one I want and it inserts it.
I've tried this numerous times, and it never inserts "ObjectFactory()".
I'll submit a ticket for this, but I wondered if anyone is familiar with this behavior.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds