|
|
Re: Renaming a directory containing Papyrus models [message #1519794 is a reply to message #1519360] |
Sat, 20 December 2014 22:10 |
Vlad Acretoaie Messages: 95 Registered: April 2014 |
Member |
|
|
Hi,
Thanks for taking the time to replicate my problem.
I'm also using Papyrus 1.0 and Eclipse Luna. Here are the steps I am following:
- I have the attached .uml, .notation, and .di files in a directory called "models".
- Using Eclipse, I right-click on the "models" directory in the Package Explorer and select the Refactor->Rename menu option. I type a new directory name.
- When I double-click on the ad1.di file in the Package Explorer, the Papyrus diagram editor opens, but the content of the diagram is blank.
The same problem appears if I rename the directory using Windows.
I checked the .notation file, but it doesn't seem to contain any absolute paths. So the problem is quite strange indeed.
Cheers,
Vlad
-
Attachment: ad1.uml
(Size: 1.54KB, Downloaded 136 times) -
Attachment: ad1.notation
(Size: 6.84KB, Downloaded 132 times) -
Attachment: ad1.di
(Size: 0.10KB, Downloaded 188 times)
|
|
|
Re: Renaming a directory containing Papyrus models [message #1521128 is a reply to message #1519794] |
Sun, 21 December 2014 16:20 |
Anders Sjöström Messages: 4 Registered: December 2014 |
Junior Member |
|
|
Hi,
I think I'm starting to understand your problem.
If I do exactly the steps you describe I also get the result that the diagram editor is opened, and is blank. However I don't think that it is due to some corruption or lost association.
Papyrus will in the workspace meta data save which diagrams that were open last time the diagram editor was open. Since a model can contain many diagrams, you would not like all of them to always open automatically each time you open the model, instead it will only restore those that were open last time. Your model is sort of a special case, since it has only one diagram one could argue that the tool could detect that and simply open that lonely diagram by default
The file the state is saved to contains workspace relative paths, thus the diagram is no longer found if the name of the folder is changed. Same thing happens if you copy the files to another project, and then open the model from that project. Papyrus will not have any memory of what diagram(s) should be restored.
Try this: From the state that you described, try opening the "Model Explorer", Expand "Activity Diagram Q1", Right click on "Diagram Activity" and do "open". Now you should hopefully be able to see the activity diagram, right?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03812 seconds