Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321823 - [Generative Tools] A pop-up action would be helpful to automate the creation of GenNode CustomBehavior for Show/Hide Classifier Contents
Summary: [Generative Tools] A pop-up action would be helpful to automate the creation ...
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: Vincent Lorenzo CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks: 319238
  Show dependency tree
 
Reported: 2010-08-05 03:24 EDT by Vincent Lorenzo CLA
Modified: 2010-08-05 04:35 EDT (History)
0 users

See Also:


Attachments

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: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