Community
Participate
Working Groups
R3.1 When looking at bug 71081 I found that Ant is calling IDocumentSetupParticipant.setup(IDocument) outside the file buffers framework on their own. In general this should not be done. I found two use cases where Ant does this: - in the document provider this is the one that worries me and has probably been added to make external and CVS documents work. A better approach is to use ForwardingDocumentProvider as done in PropertiesFileDocumentProvider or CU document provider. - when creating an empty document ==> this might be a good and valid choice for performance reasons but only if the document is totally private. Otherwise let the text file buffer manager create the document
The case of usage in the document provider is explained in bug 72598 but from my testing on the latest 3.2 this workaround appears to no longer be needed The other three usages are for totally private preview documents in preference pages and such. Dani, could you please comment wrt to bug 72598 and resolution of enhancements/bugs that would remove the need for our old workaround.
Normally the workaround is not needed if you're using a ForwardingDocumentProvider.
Sorry I was not very clear. On the current code I can remove the workaround and everything appears to work as prescribed. This was not the case in 3.1 when Kai and I worked out the workaround. I will do more testing and plan to release with the "bad" code removed.
Changes made to the AntEditorDocumentProvider to remove unneeded workaround based on testing from bug 72598.
Please verify Kevin.
verified
This fix probably caused bug 150825.