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

Bug 325419

Summary: [Preferences] Add the possibility to define the visibility of the compartments in the Papyrus 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: yann.tanguy
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 325445, 325446, 325447, 325448, 325450, 326643, 342954    
Bug Blocks:    

Description Vincent Lorenzo CLA 2010-09-16 05:25:09 EDT
It should be interesting defining the compartments to show in the Papyrus Preferences. In this way, the created elements would have only the appropriate compartments. Moreover the user could display the hided compartments with the action Show/Hide Compartments.
In order to do that, we need to modify the generation of the diagram. Its concerns the files ViewProvider.xpt and NodePreferencePage.xpt
Comment 1 Vincent Lorenzo CLA 2010-09-16 05:37:13 EDT
Done in r2714 (Branch 0.7.x) for 
Class Diagram
Profile Diagram
Communication Diagram

+ generator and templates are modified
Comment 2 Vincent Lorenzo CLA 2010-09-16 05:45:50 EDT
Sorry, done in r2715 for Communication Diagram
Comment 3 Vincent Lorenzo CLA 2010-09-16 09:01:19 EDT
new version of org.eclipse.papyrus.preferences commited in r2722
Comment 4 Vincent Lorenzo CLA 2010-09-17 03:18:58 EDT
Done in r2727 for the SysML Diagram blockDefinition, internalblock and requirement
Comment 5 Vincent Lorenzo CLA 2010-09-23 04:35:57 EDT
Profile Diagram : minor change in r2758 : A compartment had a bad name...
Comment 6 Yann Tanguy CLA 2010-09-29 08:51:55 EDT
Minor changes in r2827 (no necessary need to regenerate).
Comment 7 Vincent Lorenzo CLA 2010-10-01 05:35:19 EDT
In r2842
Minor Changes : Improve the methods getImage() and getText() in EditorLabelProvider
Comment 8 Yann Tanguy CLA 2010-10-05 06:22:10 EDT
The generation templates don't seem to work for PropertyPart in Composite.
Comment 9 Yann Tanguy CLA 2010-10-05 06:48:12 EDT
The generation temples don't provide the expected behavior for ChildNodes (see nested Class in Composite).
Comment 10 Vincent Lorenzo CLA 2010-10-05 10:45:22 EDT
I have found a problem in Composite Structure Diagram.
   Currently the template supposes that Top Level Node and Child Node have equivalent compartments, with the same Title. I see it's not the case in Composite Diagram : compartments for Child Node are suffixed with CN.
   For example, ClassCompositeCompartmentEditPartCN is named  "ClassCompositeCompartmentCN" instead of "ClassCompositeCompartment", like ClassCompositeCompartmentEditPart
Comment 11 Vincent Lorenzo CLA 2010-10-06 06:03:15 EDT
Minor change in r2886
I change the Generator to correct the bug in Composite  

Now we generate the preferences pages in this order: 
1/ Child Nodes Label
2/ Others Child Nodes
3/ Top Level Nodes
Comment 12 Yann Tanguy CLA 2010-10-20 18:26:54 EDT
In r2986
IBD Property - Part compartment initialized to visible in preferences.
Comment 13 Vincent Lorenzo CLA 2013-03-13 06:55:25 EDT
This bug can be marked as closed fixed.