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

Bug 321874

Summary: [Composite Structure Diagram] Show/Hide Related Ports/Properties action should be done with an EditPolicy
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 307318    

Description Vincent Lorenzo CLA 2010-08-05 09:48:51 EDT
Currently, the Show/Hide Related Ports/Properties action works without use the EditPolicy mechanism.
We should try to inherit from the Show/Hide Contents action to provide the Show/Hide Related Ports/Properties in the Composite Structure Diagram.
Comment 1 Yann Tanguy CLA 2010-08-16 07:30:54 EDT
Moreover, Show/Hide Related Ports/Properties action & Show/Hide Contents should be merged (1 button Show/Hide related elements).

Having both buttons is confusing (e.g. Composite Class) and have different behavior where the result should be the same:
- Show/Hide related Port -> refresh the figure even if the selection has not changed
- Show/Hide related Port -> always mask possibly shown nested classifiers
Comment 2 Vincent Lorenzo CLA 2010-08-25 03:27:42 EDT
Done in r2592 for Branch 0.7.x
Comment 3 Vincent Lorenzo CLA 2010-08-25 03:38:39 EDT
Done in r2593 for the head Branch
Comment 4 Vincent Lorenzo CLA 2010-11-25 04:24:31 EST
2 problems with this action : 
	- The merged with Show/Hide contents is not yet done 
	- The status of the action is not refreshed in the menu Diagram.
Comment 5 Vincent Lorenzo CLA 2010-11-25 05:27:03 EST
R3326 corrects these 2 problems
Comment 6 Yann Tanguy CLA 2011-04-28 05:10:51 EDT
Fixed.