Skip to main content



      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
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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] Thu, 06 June 2013 20:47 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 19:20:28 EDT 2025

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

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

Back to the top