Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327239 - SaveAs produces wrong .di file
Summary: SaveAs produces wrong .di file
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 10:23 EDT by Ansgar Radermacher CLA
Modified: 2013-02-28 13:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Radermacher CLA 2010-10-07 10:23:37 EDT
The SaveAs Dialog in Papyrus produces a new .uml/.notation/.di file. However, the .di file still contains partly references to the old file. In consequence, diagrams are not shown in the model explorer.

Here is an example of a model "ClientServer.di" that has been saved as "PpUnit.di" (in another folder test). The pageList part refers to the existing file, the sashModel part to the new one.


<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:history="http://www.eclipse.org/papyrus/0.7.0/controlmode">
  <di:SashWindowsMngr>
    <pageList>
      <availablePage>
        <emfPageIdentifier href="../model/ClientServer.notation#_XSHWMF36Ed-UvNEDwY5GNg"/>
      </availablePage>
      <availablePage>
        <emfPageIdentifier href="../model/ClientServer.notation#_wOG5sF36Ed-UvNEDwY5GNg"/>
      </availablePage>
      ...
    </pageList>
    <sashModel currentSelection="/0/@sashModel/@windows.0/@children.0">
      <windows>
        <children xsi:type="di:TabFolder">
          <children>
            <emfPageIdentifier href="PpUnit.notation#_XSHWMF36Ed-UvNEDwY5GNg"/>
          </children>
          <children>
        </children>
      </windows>
    </sashModel>
  </di:SashWindowsMngr>
  <history:ControledResource/>
  ...
</xmi:XMI>
Comment 1 Camille Letavernier CLA 2013-02-28 13:34:53 EST
I could not reproduce the issue in the latest version. I close the task.