Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Completion on FQCN for JAXB ObjectFactory doesn't do the completion
Completion on FQCN for JAXB ObjectFactory doesn't do the completion [message #504787] Tue, 22 December 2009 11:54 Go to next message
Eclipse UserFriend
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.
Re: Completion on FQCN for JAXB ObjectFactory doesn't do the completion [message #505027 is a reply to message #504787] Thu, 24 December 2009 12:37 Go to previous message
Eclipse UserFriend
If it matters, the ticket I submitted for this is https://bugs.eclipse.org/bugs/show_bug.cgi?id=298426 .

Initial responses show that it's repeatable with a simple test case, and the nature of the fix for it is somewhat understood.
Previous Topic:Eclipse IDE -- view local variables Expressions in .jar file
Next Topic:Using FreeTTS with Eclipse
Goto Forum:
  


Current Time: Sun Mar 16 09:51:55 EDT 2025

Powered by FUDForum. Page generated in 0.03607 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top