Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317605 - [Papyrus Integration] Cannot override default visibility in customization for facet reference
Summary: [Papyrus Integration] Cannot override default visibility in customization for...
Status: CLOSED WONTFIX
Alias: None
Product: MoDisco
Classification: Modeling
Component: Main (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 317599
  Show dependency tree
 
Reported: 2010-06-22 11:20 EDT by Yann Tanguy CLA
Modified: 2010-10-04 13:47 EDT (History)
3 users (show)

See Also:


Attachments
plug-in to set all references to hidden (17.57 KB, application/x-zip-compressed)
2010-06-23 06:17 EDT, Nicolas Bros CLA
no flags Details

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