Community
Participate
Working Groups
Created attachment 100023 [details] Proposed patch This patch persists the RDT service model between Eclipse sessions. Zip file for test plugin to follow.
FYI, this patch will cause compilation errors unless the one in bug 231910 has been applied as well.
Created attachment 100040 [details] Proposed patch 2 This patch is the same as the first but adds an implementation of equals() and hashcode() to Service. This is necessary for the (soon-to-be-posted) test suite to pass.
Created attachment 100042 [details] Test suite/plugin for RDT services This zip file contains a plugin project that houses tests for the RDT services plugin.
Moving to 2.1
Hi Jason, is there some reason you're using a File rather than a Memento to persist the model?
Hi Greg, I'm implementing ISaveParticipant in order to be notified of workspace save/load events. That interface uses a series of files to store data. I don't think it supports IMemento...
I'm getting an error when I try to apply the patch. It's complaining about the patch to ServiceModelManager. I applied 231910 first, is this likely to be the problem?
Thanks, Greg. I think I'll have to respin the patch. I made it before 231910 was applied and they both affect the same file so I'm sure the offsets will be off. Chris mentioned that this patch doesn't provide hooks to allow service providers an opportunity to serialize their state. I think that using IMemento would be more appropriate in this case, since it provides a general way of persisting structured data. I'll rework this and submit a new patch.
Created attachment 100555 [details] Proposed patch - IMemento version This uses IMementos to allow service provider implementations to persist their state along with the service model.
Created attachment 100556 [details] Updated tests Updated test suite plugin.
Committed, thanks! Would you mind making sure that all methods have javadoc or non-javadoc comments (not necessary in test plugin)?
Closing