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

Bug 317605

Summary: [Papyrus Integration] Cannot override default visibility in customization for facet reference
Product: [Modeling] MoDisco Reporter: Yann Tanguy <yann.tanguy>
Component: MainAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: hugo.bruneliere, modisco.web-inbox, sebastien.gerard
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 317599    
Attachments:
Description Flags
plug-in to set all references to hidden none

Description Yann Tanguy CLA 2010-06-22 11:20:41 EDT
The customization manager setting cannot always be overridden by customization files:

If the default behavior is "Show derived links" and the visibility set to false for a derived reference
--> the derived reference is correctly masked in the navigator

If the default behavior is "Mask derived links" and the visibility set to true for a derived reference
--> the derived reference is not shown in the navigator
Comment 1 Nicolas Bros CLA 2010-06-23 06:17:29 EDT
Created attachment 172492 [details]
plug-in to set all references to hidden

In fact, this is the expected behavior. The settings that you define directly on the CustomizationManager  correspond to the toolbar buttons in the full model browser. When a user unchecks "Show Derived Links" in the model browser, s/he expects all derived links to be hidden, regardless of loaded customizations.

In your case, you can achieve the desired behavior by leaving "Show Derived Links" as "true" in the CustomizationManager, and defining in your uiCustom which references you want hidden.

If you want to hide all references but a few, you should add a customization that sets "visible" to "false" on each reference that you want to hide.

Since this represents tedious work with the current version of the UiCustom editor, I made a small plug-in (attached) that adds an action in the popup menu on a uiCustom file, to set each reference to "hidden" in this file.
Comment 2 Nicolas Bros CLA 2010-06-23 06:19:00 EDT
marking "WONTFIX", since this is the expected behavior
Comment 3 Yann Tanguy CLA 2010-06-23 10:05:40 EDT
Thanks for the small plug-in, it was quite easy to modify our default customization file with it.
Comment 4 Hugo Bruneliere CLA 2010-10-04 13:47:16 EDT
It was not a bug.