Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] SaveParticipant/ProjectDescription problem


I have a plugin that is storing some data in the project using CProjectDescription. To ensure my data is being saved, I have written SaveParticipant that calls my #saveInProject method.

When a project is closed, the plugin uses the CProjectDescription to save its data. However this results in an IllegalArgumentException: Attempted to beginRule: R/, dos not match outer scope rule: P/project.

On further investigation, it seems that the Save Participant is called with a Project scheduling rule (P/project), but the CoreModel.setProjectDescription (which I use to save my additional data) uses a Workspace Root scheduling rule (R/).

Does anybody have advice on how I should be saving my data?Is there anyway to avoid the scheduling rule problem? Am I even doing it the right way?



Back to the top