Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Content Assist(Adding items to Content Assist)
Content Assist [message #1842241] Mon, 14 June 2021 09:02 Go to next message
Roby Nassi is currently offline Roby NassiFriend
Messages: 4
Registered: July 2020
Junior Member
Hello all,

is there a way to add a static list of items to the content assist popup?

I'm doing a tool to extract frequent object method invocations from my sources. I want to have them when i type so i can reuse methods calls that I've done in the past code.

To explain better it's similar to tabnine.com but not at all automated. The list is static as I've said, I will get it from some pre processing outside Eclipse.

If it cannot be done where i can see in the Eclipse source code the point where that can be coded ?

thanks!
Re: Content Assist [message #1842253 is a reply to message #1842241] Mon, 14 June 2021 14:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4145
Registered: July 2009
Senior Member

Every editor in Eclipse can handle this differently, so which one are you talking about? And are the proposals truly static or
merely pre-calculated outside of Eclipse? That's two very different things.


Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Content Assist [message #1842270 is a reply to message #1842253] Tue, 15 June 2021 07:46 Go to previous messageGo to next message
Roby Nassi is currently offline Roby NassiFriend
Messages: 4
Registered: July 2020
Junior Member
Hi, i need it for java and secondly for javascript. Proposals are pre-calculated outside of Eclipse, in other words I can generate them every one week for example.
Re: Content Assist [message #1842297 is a reply to message #1842270] Tue, 15 June 2021 20:45 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4145
Registered: July 2009
Senior Member

For JavaScript you can ask about it at https://github.com/eclipse/wildwebdeveloper/.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Content Assist [message #1842408 is a reply to message #1842241] Thu, 17 June 2021 21:14 Go to previous messageGo to next message
Dirk Steinkamp is currently offline Dirk SteinkampFriend
Messages: 3
Registered: July 2009
Junior Member
Not sure if I understand you correctly -- but did you check out Window- > Preferences -> Java -> Editor -> Content Assist -> Favorites?

It lets you define classes or individual static members of selected classes that will be proposed by content assist and if chosen be inserted as static imports.
Re: Content Assist [message #1842481 is a reply to message #1842408] Mon, 21 June 2021 11:54 Go to previous messageGo to next message
Roby Nassi is currently offline Roby NassiFriend
Messages: 4
Registered: July 2020
Junior Member
I generate a .txt with completion proposals, one per line, I want to import it as an addition to completion proposals when i type in the editor.
Re: Content Assist [message #1842548 is a reply to message #1842481] Wed, 23 June 2021 06:17 Go to previous message
Dirk Steinkamp is currently offline Dirk SteinkampFriend
Messages: 3
Registered: July 2009
Junior Member
okay, did you check out the option I mentioned? It will do what you want with the exception that you can't directly import your list but have to type in the class names.
Previous Topic:Eclipse 2021-06 error on maven pom
Next Topic:ClassNotFoundException: org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl
Goto Forum:
  


Current Time: Mon Dec 06 21:46:15 GMT 2021

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

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

Back to the top