Community
Participate
Working Groups
When creating a part with the PartService, the persistedState collection is not copied over. That seems, at the least, inconsistent with the fact that most everything else is copied over. The fix would be a line of code in PartServiceImpl.createPart(), near line 675.
Moving to platform. Eric can you check?
Patrick, nice one...not only a good pickup but excellent advice on the possible fix. My first thought was "How can a descriptor (which is never rendered) have 'persistentData' ?". A little reflection shows however that this makes complete sense as a way to 'seed' a new part with default values that will later be persisted. I've pushed an initial patch to Gerrit for folks to try out... https://git.eclipse.org/r/14574 Let me know if you think this is sufficient.
The patch *looks* good to me. I am unable to test from GIT where I am. Thanks.
I just added the following code where you suggest (i.e. right after we copy over the 'tags' info... part.getPersistedState().putAll(descriptor.getPersistedState()); I'm running with this code in place for a bit but if I don't see any direct issues I'll likely commit it later in the week. Try it out just to make sure it's giving you what you expect...
This code is already in master...
Verified in the build: I20130805-2000