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

Bug 343092

Summary: [Enhancement] Show/Hide Compartment Title
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: 0.9.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 343361    
Bug Blocks:    

Description Vincent Lorenzo CLA 2011-04-18 03:32:27 EDT
Currently, we use the field "Needs Title" to define the visibility of the Title of the Compartments. It is not the correct way to do that, because, in the template, when this field is false, the Title is not generated. Currently, this is the function initCompartmentsStatusFromPrefs which create it, when the preference is set to true (Title is visible). 
	-> if the preference is set to false, the compartment is never created and the user can't display the title with the Show/Hide Compartment Title Action

We need  :
	1) a new gmfgenextension to define the compartments which are hidden by default : Compartment Title Visibility
	1bis) the correct template to manage this new node.
	2) a tool to change the value of "Needs Title" to true and create the node Compartment Title Visibility
	3) the function initCompartmentsStatusFromPrefs shouldn't create the Title!
Comment 1 Vincent Lorenzo CLA 2011-04-18 03:35:32 EDT
Committed in R4477 : point 1) and 1bis)
Comment 2 Vincent Lorenzo CLA 2011-04-18 09:39:41 EDT
2) Commited in R4486
Comment 3 Vincent Lorenzo CLA 2011-04-20 05:01:47 EDT
2) Committed in R4500.
Comment 4 Vincent Lorenzo CLA 2011-04-20 05:13:47 EDT
2) Commited In 4501
The actionShow/Hide compartment don't provide a checkbox for the compartment which have not Title.
Comment 5 Vincent Lorenzo CLA 2011-04-20 05:22:40 EDT
In R4502 : Committed changes for 
	AbstractPapyrusNodePreferencePage
	NodeCompartmentGroup
	
	-> when Needs Title is false -> the title is not proposed in the preference page!
Comment 6 Vincent Lorenzo CLA 2011-04-20 05:27:24 EDT
Committed in R4503 : 
Add useful methds for the preferences pages + Template enhancement
Comment 7 Patrick Tessier CLA 2012-03-23 12:42:41 EDT
the action show/hide method has been change to take in account the view and the type of the view 
done in the version 7625
Comment 8 Patrick Tessier CLA 2013-02-13 08:20:46 EST
done
Comment 9 Vincent Lorenzo CLA 2013-03-13 09:55:26 EDT
This bug can be closed.