Community
Participate
Working Groups
I have a big model created few time ago. At one time I have enable the Resource Loading mechanism by opening the corresponding projects. I have never used the control mode on this model. Today, it seems that: - I can NOT see my diagram icons in the explorer (but the diagrams are opened). - If I create a new diagram, I can see its icon - If I close the Resource Loading mechanism projects and ControlMode, Papyrus can't load my model again (an exception is thrown), and I cannot open the .di file with the di editor. The di contains references to History !!! For my point of view, the Resource Loading mechanism should be transparent and we should be able to activate/deactivate it. When it is deactivated, we should be able to load the model anyway. It looks like the Resource Loading modify something in one of the models, and that this forbid to open the model again ... The history mechanism should not record data as long as we don't use ControlMode.
All .di files contain a node History, regardless if the history is used or not. This come from the /org.eclipse.papyrus.core.resourceloading/src/org/eclipse/papyrus/core/resourceloading/ExampleService.java that was here as example and should be removed.
The problems of extra nodes in .di comes from the History Model: an example class was creating node as example :-(. The class is removed, and the bug is corrected. For older diagrams, it is possible to remove manually extra history nodes from the text editor. It is also necessary to remove the history namespace declaration from the xml root node. Origin of other problems is not identified and can not be reproduced.