Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How can I implement Eclipse Content Assist feature into my editor?
How can I implement Eclipse Content Assist feature into my editor? [message #1060509] Sat, 25 May 2013 12:32 Go to next message
Burak Emre Kabakcı is currently offline Burak Emre Kabakcı
Messages: 2
Registered: May 2013
Junior Member
I have been working on a Java web editor and I want take advantage of Eclipse's great features like content assist.
I'm able to compile my Java project on the fly using org.eclipse.jdt.internal.compiler.Compiler. It gives me a list of errors that contains row and column information for highlighting.
The next step is to implement Proposals feature of Eclipse but I couldn't do it because many packages of content assist feature use UI packages of Eclipse, however what I need is a list of proposals for a specific error/warning in the code that I compiled. Also I have only an ICompilationUnit object instead of IJavaProject and so not even sure whether it's possible or not without using only ICompilationUnit, so it would be great if you share your ideas on this issue.
Re: How can I implement Eclipse Content Assist feature into my editor? [message #1060585 is a reply to message #1060509] Mon, 27 May 2013 03:53 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 4468
Registered: July 2009
Senior Member
On 25.05.13 18:32, Burak Emre Kabakcı wrote:
> I have been working on a Java web editor and I want take advantage of
> Eclipse's great features like content assist.
> I'm able to compile my Java project on the fly using
> org.eclipse.jdt.internal.compiler.Compiler. It gives me a list of errors
> that contains row and column information for highlighting.
> The next step is to implement Proposals feature of Eclipse but I
> couldn't do it because many packages of content assist feature use UI
> packages of Eclipse, however what I need is a list of proposals for a
> specific error/warning in the code that I compiled. Also I have only an
> ICompilationUnit object instead of IJavaProject and so not even sure
> whether it's possible or not without using only ICompilationUnit, so it
> would be great if you share your ideas on this issue.

ICompilationUnit.codeComplete(int,ComplettionRequestor)

Tom
Previous Topic:refresh/update java editor programmatically before jumping to java element
Next Topic:Please Help Asap!!!
Goto Forum:
  


Current Time: Tue May 28 02:52:43 EDT 2013

Powered by FUDForum. Page generated in 0.02858 seconds