IncrementalProjectBuilder and IWorkspaceRunnable [message #274930] |
Mon, 01 November 2004 09:40  |
Eclipse User |
|
|
|
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 #274977 is a reply to message #274941] |
Tue, 02 November 2004 04:11  |
Eclipse User |
|
|
|
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 ?
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05883 seconds