Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How do I compile file opened in editor when idle?
How do I compile file opened in editor when idle? [message #224190] Thu, 08 April 2004 01:36 Go to next message
Eclipse UserFriend
Originally posted by: cwillia1.rochester.rr.com

Hi,
I'm helping out writing a plugin for ruby development. We'd like to be
able to run a parser on the open ruby file after the user is idle for a
second or so inside the editor. This is so that we can update the
OutlinePage and create new markers. Perviously I had cheated and parsed
during the OutlinePage getElements calls, which achieved the behavior I
was looking for, but significantly slowed down the editing.

How does the JDT manage this? Do I need to have an IResourceListener and
filter for files changes to the opened file? How do I wait for the idle
period?

Thanks,
Chris
Re: How do I compile file opened in editor when idle? [message #224598 is a reply to message #224190] Thu, 08 April 2004 15:41 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
You may want to take a look at the Ant editor..a little simpler than JDT :-)
We do a background "reconcile" to update the Ant Model.
We wait about 500 ms once the document is marked dirty and then kick off the
updates.

HTH
Darins

"Christopher Williams" <cwillia1@rochester.rr.com> wrote in message
news:c52abi$j1m$1@eclipse.org...
> Hi,
> I'm helping out writing a plugin for ruby development. We'd like to be
> able to run a parser on the open ruby file after the user is idle for a
> second or so inside the editor. This is so that we can update the
> OutlinePage and create new markers. Perviously I had cheated and parsed
> during the OutlinePage getElements calls, which achieved the behavior I
> was looking for, but significantly slowed down the editing.
>
> How does the JDT manage this? Do I need to have an IResourceListener and
> filter for files changes to the opened file? How do I wait for the idle
> period?
>
> Thanks,
> Chris
>
Previous Topic:cant find cvs console ?
Next Topic:Creating a own UndoManager that can be applied to all TextViewers
Goto Forum:
  


Current Time: Fri Aug 23 11:19:39 GMT 2024

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

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

Back to the top