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

Bug 321822

Summary: [Composite Structure Diagram] Add the custom Behavior Show/Hide Contents for the Classifier
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yann.tanguy
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 319238    
Attachments:
Description Flags
The new gmfGen for Composite Diagram
none
Patch for the GMFGen (r2494)
none
Patch for the GMFGen (r2522) none

Description Vincent Lorenzo CLA 2010-08-05 03:19:28 EDT
The EditParts that represent UML Classifier (Class, DataType, StateMachine,...) and which have compartments should have the following EditPolicy : 
EditPolicy : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy
key : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY

This action allows Show/Hide easily members and inherited members for the classifiers.
This action is available in the Filter Menu and in the ToolBar (the fantom icon!), or with the key F4 (Show/Hide Contents)
Comment 1 Vincent Lorenzo CLA 2010-08-05 04:53:46 EDT
This action will replace the Show/Hide Inherited Properties/Ports in this diagram
Comment 2 Vincent Lorenzo CLA 2010-08-05 09:25:44 EDT
Created attachment 175928 [details]
The new gmfGen for Composite Diagram

Add the custom Behavior to display contents in Classifier
Add the custom Behavior to show/hide Compartments
Comment 3 Vincent Lorenzo CLA 2010-08-05 09:28:44 EDT
Created attachment 175929 [details]
Patch for the GMFGen (r2494)

Patch for the GMFGen (r2494)
Comment 4 Vincent Lorenzo CLA 2010-08-05 09:29:30 EDT
Created attachment 175930 [details]
Patch for the GMFGen (r2522)

Patch for the GMFGen (r2522)
Comment 5 Vincent Lorenzo CLA 2010-08-05 09:32:51 EDT
In the attachment, you have the new GMFGen file with new features and the patch corresponding to the new feature in the GMFGen (for r2522).
Add the Show/Hide behavior for compartments  (bug 320361)
Add the Show/Hide contents for Classifiers (bug 321822)
Comment 6 Yann Tanguy CLA 2010-08-06 16:17:48 EDT
EditPolicy added in Composite Structure Diagram (r2550)
Comment 7 Yann Tanguy CLA 2011-04-28 05:31:28 EDT
Fixed.