Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » IncrementalProjectBuilder and IWorkspaceRunnable
IncrementalProjectBuilder and IWorkspaceRunnable [message #274930] Mon, 01 November 2004 09:40 Go to next message
Eclipse UserFriend
Originally posted by: edoardoATenigmatecDOTnet.no.spam

Given the well-known tip that workspace changes should be batched inside
IWorkspaceRunnable.run, can anyone confirm

that the batching is happening automagically for workspace
modifications performed during an implementation of
IncrementalProjectBuilder.build ?

i.e, that my builder implemnentation should not have to explicitly use
IWorkspaceRunnable ?

TIA,
Edo

PS I expect so because the implementation of Project.build(..) is like :

try {
....
workspace.beginOperation(true);
workspace.aboutToBuild();
workspace.getBuildManager().build(this, trigger, monitor);
workspace.broadcastChanges(IResourceChangeEvent.POST_BUILD, false);
} finally {
....
workspace.endOperation(rule, false, null);
}
Re: IncrementalProjectBuilder and IWorkspaceRunnable [message #274941 is a reply to message #274930] Mon, 01 November 2004 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

I can confirm that. IWorkspaceRunnable is NOT needed inside a builder.
The platform batches the entire workspace build in a single runnable for
you.
--

Edoardo Comar wrote:
> Given the well-known tip that workspace changes should be batched inside
> IWorkspaceRunnable.run, can anyone confirm
>
> that the batching is happening automagically for workspace
> modifications performed during an implementation of
> IncrementalProjectBuilder.build ?
>
> i.e, that my builder implemnentation should not have to explicitly use
> IWorkspaceRunnable ?
Re: IncrementalProjectBuilder and IWorkspaceRunnable [message #274977 is a reply to message #274941] Tue, 02 November 2004 04:11 Go to previous message
Eclipse UserFriend
Originally posted by: edoardoATenigmatecDOTnet.no.spam

thanks!

John Arthorne wrote:
> I can confirm that. IWorkspaceRunnable is NOT needed inside a builder.
> The platform batches the entire workspace build in a single runnable for
> you.
> --
>
> Edoardo Comar wrote:
>
>> Given the well-known tip that workspace changes should be batched
>> inside IWorkspaceRunnable.run, can anyone confirm
>>
>> that the batching is happening automagically for workspace
>> modifications performed during an implementation of
>> IncrementalProjectBuilder.build ?
>>
>> i.e, that my builder implemnentation should not have to explicitly use
>> IWorkspaceRunnable ?
>
>
Previous Topic:Scripting an Eclipse update
Next Topic:: java.io.IOException: An error occurred while locking file
Goto Forum:
  


Current Time: Tue Jun 03 05:19:30 EDT 2025

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

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

Back to the top