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 16:32 Go to next message
Burak Emre Kabakcı is currently offline Burak Emre Kabakcı
Messages: 3
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 07:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5403
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
Re: How can I implement Eclipse Content Assist feature into my editor? [message #1062281 is a reply to message #1060585] Fri, 07 June 2013 00:47 Go to previous message
Burak Emre Kabakcı is currently offline Burak Emre Kabakcı
Messages: 3
Registered: May 2013
Junior Member
That ICompilationUnit class is actually in another package. The one that I use in internal compiler package.
Previous Topic:Will Eclipse IDE for Java EE Developers be provided for Kepler?
Next Topic:Format jsp file through java code
Goto Forum:
  


Current Time: Tue Oct 21 18:38:01 GMT 2014

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

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