Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re-decoration of navigator content before incremental build job finished
Re-decoration of navigator content before incremental build job finished [message #693848] Thu, 07 July 2011 06:31 Go to next message
Peter Saunders is currently offline Peter Saunders
Messages: 30
Registered: July 2009
Member
I have a navigator content extension which I am using to override certain IFolder and IFile objects and provide custom objects (adaptable to IResource) instead. This content extension is bound to the Project Explorer. I also have a lightweight label provider to decorate the custom objects if any of the IResource objects represented by its children have a problem marker.

The problem is that my incremental builder visits the folders containing the files to be built before visiting the files themselves. The end of each 'visit' by the incremental builder appears to trigger re-decoration of the resource. The custom folder objects are therefore re-decorated before all the files are built and the problem markers have been added.

How can I ensure that the custom folder objects are not re-decorated until the incremental build job has finished?

Any pointers would be much appreciated.

Thank you
Re: Re-decoration of navigator content before incremental build job finished [message #693858 is a reply to message #693848] Thu, 07 July 2011 07:00 Go to previous message
Peter Saunders is currently offline Peter Saunders
Messages: 30
Registered: July 2009
Member
Peter Saunders wrote on Thu, 07 July 2011 06:31
I have a navigator content extension which I am using to override certain IFolder and IFile objects and provide custom objects (adaptable to IResource) instead. This content extension is bound to the Project Explorer. I also have a lightweight label provider to decorate the custom objects if any of the IResource objects represented by its children have a problem marker.

The problem is that my incremental builder visits the folders containing the files to be built before visiting the files themselves. The end of each 'visit' by the incremental builder appears to trigger re-decoration of the resource. The custom folder objects are therefore re-decorated before all the files are built and the problem markers have been added.

How can I ensure that the custom folder objects are not re-decorated until the incremental build job has finished?

Any pointers would be much appreciated.

Thank you


I should have mentioned that this issue occurs only when "Build Automatically" is enabled. When building manually, re-decoration of navigator content does not start until the build job has completed. I need similar behaviour when building automatically.
Previous Topic:Unable to connect to the network for update
Next Topic:Project type Vaadin Project disappear
Goto Forum:
  


Current Time: Sun Apr 20 19:45:28 EDT 2014

Powered by FUDForum. Page generated in 0.01969 seconds