How to implement a on-the-fly compiler? [message #18602] |
Tue, 07 July 2009 04:34  |
Eclipse User |
|
|
|
Hi all,
I have a question for JFace Text Framework(org.eclipse.jface.text). I am
going to have a new programming language with a specific compiler tool.
Now the source can be compiled while user saves the files, it was done by
extension point org.eclipse.core.resources.builders. Now I want to have
the on-the-fly compile capability which is similar to JDT tool. May anyone
know where I can find more information for this? I'm not sure whether the
on-the-fly compile/build function is part of JFace Text Framework? But
because JFace Text Framework provides lots of edit capabilities, such as
syntax coloring, content assist, folding...etc. I assume it might be there.
Anyway, thanks in advance for your helping.
Charles
|
|
|
|
Re: How to implement a on-the-fly compiler? [message #19416 is a reply to message #19284] |
Wed, 08 July 2009 03:28  |
Eclipse User |
|
|
|
Eric Rizzo wrote:
> Charles Lu wrote:
>> Hi all,
>>
>> I have a question for JFace Text Framework(org.eclipse.jface.text). I
>> am going to have a new programming language with a specific compiler
>> tool. Now the source can be compiled while user saves the files, it
>> was done by extension point org.eclipse.core.resources.builders. Now
>> I want to have the on-the-fly compile capability which is similar to
>> JDT tool. May anyone know where I can find more information for this?
>> I'm not sure whether the on-the-fly compile/build function is part of
>> JFace Text Framework? But because JFace Text Framework provides lots
>> of edit capabilities, such as syntax coloring, content assist,
>> folding...etc. I assume it might be there.
The JFace Text framework has means to call the model when the text
changes (aka reconciling). Of course you then need to update the model
based on the actual text. This might help:
http://www.eclipse.org/eclipse/platform-text/eclipseCon/2006 /texteditorrecipes.pdf
Dani
>
> I think this would receive more attention in the eclipse.tools.jdt
> newsgroup, so I'm copying it to there.
>
> Eric
|
|
|
Powered by
FUDForum. Page generated in 0.02580 seconds