Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321822 - [Composite Structure Diagram] Add the custom Behavior Show/Hide Contents for the Classifier
Summary: [Composite Structure Diagram] Add the custom Behavior Show/Hide Contents for ...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yann Tanguy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 319238
  Show dependency tree
 
Reported: 2010-08-05 03:19 EDT by Vincent Lorenzo CLA
Modified: 2011-04-28 05:31 EDT (History)
1 user (show)

See Also:


Attachments
The new gmfGen for Composite Diagram (713.42 KB, application/xml)
2010-08-05 09:25 EDT, Vincent Lorenzo CLA
no flags Details
Patch for the GMFGen (r2494) (30.84 KB, patch)
2010-08-05 09:28 EDT, Vincent Lorenzo CLA
no flags Details | Diff
Patch for the GMFGen (r2522) (30.84 KB, patch)
2010-08-05 09:29 EDT, Vincent Lorenzo CLA
no flags Details | Diff

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