Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355461 - [model explorer] rename submodel does not rename in parent model
Summary: [model explorer] rename submodel does not rename in parent model
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Tristan Faure CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 02:56 EDT by Raphael Faudou CLA
Modified: 2011-10-02 08:27 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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