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

Bug 343371

Summary: [StateMachine Diagram] StateMachine Diagram needs to be regenerated
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Ansgar Radermacher <ansgar.radermacher>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastien.gerard, yann.tanguy
Version: 0.9.0   
Target Milestone: SR1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 343359    
Bug Blocks: 343361    

Description Vincent Lorenzo CLA 2011-04-20 07:23:27 EDT
Cloned from: 343361: [AllDiagrams] [Enhancements]All diagrams need to be regenerated
https://bugs.eclipse.org/bugs/show_bug.cgi?id=343361

The enhancements provided by the bug 343092, bug 335987, bug 342954 need a regeneration of each diagram.
I have created 3 new gmfgen nodes which are described here : http://wiki.eclipse.org/Papyrus_Developer_Guide/Papyrus_diagram_generation#Papyrus_Extension_Root_Node_Description

for the bug 343092 : 
- all compartments with title should have the field "Needs Title" set to true
-> a new tool in oep.gmfgenextension allows to change this field on the selected compartment
- to hide the title, you should use the new gmfgen node: Compartment Title Visibility Preference

for the bug 335987
- all external nodes labels and link labels should be referenced by the new GMFGen Node Label Visibility Preferences. 
-> icons for role are located in oep.diagram.common/label_role
-> warning with the preferences pages :
for example : 
same pages for AssociationNode, AssociationLink and AssociationBranchLink
-> now we should have a page for AssociationLink and AssociationNode (change the field "DisplayName" in the gmfgen of the element
-> AssociationBranch and AssociationLink should have the same "Display Name", BUT AssociationBranch should be located before AssociationLink in the model

- the element which have labels should provides the EditPolicy ShowHideLabelEditPolicy
-> for links it is done in a super class
-> for node, you should provide it in the GMFGen (a tool is provided in oep.gmfgenextension)

for the bug 342925
- a new node Compartment Visibility Preference allows to define hidden compartments by default. Currently, I'm not sure it is be useful.

Best Regards, 
-- 
Vincent Lorenzo
Comment 1 David Servat CLA 2011-06-15 04:57:43 EDT
Regeneration done
Comment 2 Yann Tanguy CLA 2012-07-13 10:35:38 EDT
Looks like only a part of the work has been done, label display option is still not supported in Transition preferences.
Comment 3 Yann Tanguy CLA 2012-10-02 10:00:22 EDT
(In reply to comment #2)
> Looks like only a part of the work has been done, label display option is still
> not supported in Transition preferences.

Still not fixed in v0.9.1.
Comment 4 Sébastien Gérard CLA 2013-06-12 16:30:06 EDT
Ansgar, is it ok? Can we close this task?

thanks.
Comment 5 Ansgar Radermacher CLA 2014-02-03 03:58:21 EST
The diagram has been re-generated several times since error was posted.