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

Bug 325447

Summary: [UseCase Diagram] [Preferences] Regenerate UseCase Diagram to add the Compartments Preferences
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emilien.perico, sebastien.gerard
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 325419    

Description Vincent Lorenzo CLA 2010-09-16 08:17:31 EDT
According with the bug 325419, the templates have been modified. Now we can define the visibility of the compartments in the Papyrus preferences.

With these new preferences, all Nodes which have compartments must have the following Custom Behavior : 
	key : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY
	class : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideCompartmentEditPolicy

The concerned nodes must provide this behavior, because if a compartment is hided in the preferences, its will be not possible to show it later. 

Nodes with compartments in UseCase Diagram don't have this behavior (bug 320362)

You need to update the plugins org.eclipse.papyrus.codegen and org.eclipse.papyrus.def before regenerating your diagram.
Comment 1 Vincent Lorenzo CLA 2010-10-01 03:32:59 EDT
Done in r2841

In the GMFGen : 
	Add the custom behavior for : 
		- UseCaseInComponentEditPart
		- ComponentInComponentEditPart
		- UsecaseInPackageEditPart
		- ComponentInPackageEditPart
		- PackageEditPartCN
		- UsecaseEditPartTN
		- UsecaseAsRectangleEditPartTN
		- ComponentEditPartTN
		- PackageEditPartTN
		
 -change compartment title for UseCasePointsInRectangleEditPart : "extension points" become "points" : 
	- in gmfgen
	- in gmfgraph (to be consistent)
	- in gmfmap (to be consistent)
	
- generation from the gmfgen
Comment 2 Vincent Lorenzo CLA 2011-04-20 03:08:59 EDT
This bug can be marked as closed