Bug 422247 - [Control Mode] Save as does not work for controlled models
Summary: [Control Mode] Save as does not work for controlled models
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Juan Cadavid CLA
QA Contact:
URL:
Whiteboard: dx submodels
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 07:58 EST by Camille Letavernier CLA
Modified: 2014-05-21 07:35 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Camille Letavernier CLA 2013-11-21 07:58:59 EST
When using "Save as...", only the main model is saved to the new locations. All controlled resources are saved in-place.

Expected behavior: The controlled resources should keep the same relative position to the main model. For example:

/MainModel
/Package1/ControlledModel
	
Save as to "/MyFolder" should result in:

/MyFolder
/MyFolder/MainModel
/MyFolder/Package1/ControlledModel

Corner cases need to be identified. For example, when using "Save as..." in the same folder, the relative URIs of controlled models remain untouched. In this case, we have two options:

- Do not touch the controlled models (They are shared by two different main models)
- Rename the controlled models
Comment 1 Camille Letavernier CLA 2014-03-11 11:29:41 EDT
Current state (From enhancements in bug 429239):

The notation resource associated to the controlled UML resource is now properly loaded. However, the resource is not considered as "controlled" (Because only the *.uml resource is controlled; the diagrams only live in different resources, which are located next to the controlled *.uml resource).

The "setModelURI" needs to be overridden for NotationModel and DiModel, to update resources which are related to controlled resources (In addition to controlled resources themselves)
Comment 2 Camille Letavernier CLA 2014-05-21 07:04:28 EDT
Gerrit review: https://git.eclipse.org/r/#/c/26434/

The contribution has been merged
Comment 3 Camille Letavernier CLA 2014-05-21 07:35:34 EDT
> The contribution has been merged

I close the task