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

Bug 461729

Summary: Models loaded during validation is not displayed in the model explorer
Product: [Modeling] Papyrus Reporter: Peter Cigehn <peter.cigehn>
Component: CoreAssignee: Christian Damus <give.a.damus>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: papyrus-bugs
Version: 1.1.0Flags: give.a.damus: neon+
Target Milestone: SR1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Small example model to showcase the issue none

Description Peter Cigehn CLA 2015-03-09 11:02:55 EDT
Created attachment 251409 [details]
Small example model to showcase the issue

If you validate a newly opened model and thus triggering proxy resolution of all needed dependencies, then the additional models that is loaded is not shown in the model explorer. They are not shown even when navigating the model, which in normal cases trigger the loading, and display in the model explorer, of these additional models.

Steps to reproduce:

1) Import the attached model into the a new workspace.
2) Open ModelA. Due to bug 461709 the additional models are also loaded. To overcome this issue, please close the model editor and re-open ModelA and ensure that only ModelA is loaded into the model explorer.
3) Now right clock on the root ModelA element and select Validation > Validate model. This should trigger the loading of the referenced ModelB and ModelC.
4) Navigate into ModelA and Package1 to show the import of ModelB. 
5) Please note that ModelB is *not* shown in the model explorer which is not expected, even though it apparently is loaded.
6) Close the model editor for ModelA and re-open ModelA again.
7) Navigate into ModelA (as was done in step 4) and Package1 to show import ModelB.
8) Note that ModelB now gets loaded and shown in the model explorer as expected.

It is rather confusing that models that was loaded during the validation is not displayed in the model explorer as they are when those models are loaded in other situations by normal navigation in the model.
Comment 1 Christian Damus CLA 2016-07-06 08:34:04 EDT
This is fixed indirectly by bug 497342 and bug 497379, which is still pending.
Comment 2 Christian Damus CLA 2016-07-06 09:45:39 EDT
(In reply to Christian W. Damus from comment #1)
> This is fixed indirectly by bug 497342 and bug 497379, which is still
> pending.

Bug 497379 is now resolved.
Comment 3 Peter Cigehn CLA 2016-07-06 10:08:26 EDT
Verified in the latest Neon build of Papyrus, that the models loaded during validation indeed are displayed in the model explorer as expected.