Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355461

Summary: [model explorer] rename submodel does not rename in parent model
Product: [Modeling] Papyrus Reporter: Raphael Faudou <raphael.faudou>
Component: CoreAssignee: Tristan Faure <faure.tristan>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: raphael.faudou
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Raphael Faudou CLA 2011-08-23 02:56:50 EDT
When applying "rename" command from a submodel (from project explorer view) it should automatically rename the submodel reference from its parent model. This should work in both "expanded" mode (all files available) and in "model abstraction" mode.

When renaming a controlled package from model explorer view, the tool should raise a question to the end user to know if the submodel file should be renamed or not (it is acceptable that the package be renamed and not the resource file).

Tests to conduct with models with several hierarchy levels.
Comment 1 Tristan Faure CLA 2011-09-27 04:19:52 EDT
references are now fixed when a rename is made. The user during the refactor can choose 3 options :
Project, the references will be fixed in the project of the renamed file
Workspace, the references will be fixed in the workspace
Nothing, just the 3 (or more) files will be renamed and managed

A (basic) impact analysis is made. If a file depending on the renaming file is read only the process can not continue

Commited to the trunk and to the 0.8.X branch
Comment 2 Raphael Faudou CLA 2011-10-02 08:27:27 EDT
verified->OK closed