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

Bug 321823

Summary: [Generative Tools] A pop-up action would be helpful to automate the creation of GenNode CustomBehavior for Show/Hide Classifier Contents
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: plan
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 319238    

Description Vincent Lorenzo CLA 2010-08-05 03:24:49 EDT
The mechanism managing the display of the members for Classifier requires some changes in the *.gmfgen file. In particular, regarding GenNode(s), which are Classifier and which have compartments, a specific EditPolicy is required. Such EditPolicy is defined in the *.gmfgen file with a CustomBehavior.

As the key and class implementing this behavior are always the same, it can be created automatically by a Pop-up Action.
EditPolicy : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy
Key : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY
Comment 1 Vincent Lorenzo CLA 2010-08-05 04:35:03 EDT
Done in r2534 for Head Branch and Branch 0.7.X