Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » java content assist question?
java content assist question? [message #874823] Mon, 21 May 2012 15:49 Go to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 53
Registered: July 2009
Location: korea
Member

index.php/fa/9809/0/

I have a question.
JAVA Map Object's add it to the KEY?
The attached figure TestKey1, TestKey2 like.

Thank a lot.
Re: java content assist question? [message #874970 is a reply to message #874823] Mon, 21 May 2012 21:58 Go to previous messageGo to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 53
Registered: July 2009
Location: korea
Member

i find the 'org.eclipse.jdt.ui.javaCompletionProposalComputer' extension point doesn't work.
help me.
Re: java content assist question? [message #874972 is a reply to message #874823] Mon, 21 May 2012 21:59 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1048
Registered: July 2009
Senior Member
Hi hangum,

I don't think I understand your question.
Do you want that completion proposes more options?

Do you want literal Strings like "TestKey1" to be proposed?

There are millions of possible strings that people my want to get offered.
How can the JDT know what exactly you want?

best regards,
Stephan
Re: java content assist question? [message #874991 is a reply to message #874972] Mon, 21 May 2012 23:00 Go to previous messageGo to next message
Cho HyunJong is currently offline Cho HyunJongFriend
Messages: 53
Registered: July 2009
Location: korea
Member

thanks Stephan.

Do you want that completion proposes more options?
yes.

Do you want literal Strings like "TestKey1" to be proposed?
I want literal Strings like "TestKey1" to be proposed

How can the JDT know what exactly you want?
Define a json or xml file.
I read a file and add proposed.

JDT is the first time is difficult.
help you.

Re: java content assist question? [message #876301 is a reply to message #874991] Thu, 24 May 2012 10:43 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1048
Registered: July 2009
Senior Member
hangum,

currently, the JDT makes completion proposals only from the context that it finds in the Java sources.

We have template proposals, but those are a separate mechanism that will not blend your proposals into the list computed by the JDT.

Actually, I don't see how the JDT should know in which situations it should consult external lists of your favorite proposals.

So, I don't think your expectation is realistic. I mean, what's so hard about typing "TestKey1"? Smile
Do you have to insert the same string thousands of times? In that case define a constant that will be considered by completion.

HTH,
Stephan
Previous Topic:Configure Server (Unix/Windows) for Java Program
Next Topic:i get a few errors in my compiler also
Goto Forum:
  


Current Time: Sat Dec 20 12:18:33 GMT 2014

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

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