Как открыть закрытую диаграмму в папирусе
Я случайно закрыл диаграмму в редакторе Papyrus. Я просто нажал кнопку закрытия на вкладке диаграммы в файле model.di. Теперь я не могу получить его обратно, и моя диаграмма последовательности потеряна. Как я могу получить его обратно?
1 ответ
Just to be clear: you closed the diagram (editor) from its tab at the bottom of the editor pane and not the tab with the ".di" file.
If so, don't worry, the content is still available in the model. Just lookin the Model explorer (typically on the left of the Eclipse workbench) for the diagram and re-open it. If your model is large, you can see only the diagrams by clicking on the model explorer's lefmost toolbar button (it looks like 3 lines of "bullet dash").
If the model explorer is not shown, simply type "model explorer" in the "Quick Access" box at the top left of the workbench to open it.
If you did close the model itself (the ".di" tab at the top), you should have been prompted if the model was dirty and needed saving. If you did get the prompt and did not save, you may have lost your work. Depending on how long you have worked on your model, you may have something saved in "local history", which can be accessed by right-clicking on the model in the project explorer and selecting "Team > Local History". Надеюсь, это поможет.