Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to implement a on-the-fly compiler?
How to implement a on-the-fly compiler? [message #18602] Tue, 07 July 2009 08:34 Go to next message
Charles is currently offline CharlesFriend
Messages: 4
Registered: July 2009
Junior Member
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 #19284 is a reply to message #18602] Tue, 07 July 2009 18:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

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.

I think this would receive more attention in the eclipse.tools.jdt
newsgroup, so I'm copying it to there.

Eric
Re: How to implement a on-the-fly compiler? [message #19416 is a reply to message #19284] Wed, 08 July 2009 07:28 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
Previous Topic:[Esc]-, [Enter]- and Close functions for a Dialog class
Next Topic:ComboBoxViewerCellEditor problem
Goto Forum:
  


Current Time: Thu Apr 25 14:26:49 GMT 2024

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

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

Back to the top