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

Bug 343359

Summary: [AllDiagrams] Add the custom behavior ShowHideLabelEditPolicy
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: DiagramAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: cletavernier, papyrus-bugs
Version: 1.0.0   
Target Milestone: 1.0.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 343397, 335987, 343361, 343368, 343371, 343372, 343373, 343374, 343375, 343376, 343378, 343379, 343380, 343381, 343382, 343384, 343401    

Description Vincent Lorenzo CLA 2011-04-20 05:52:36 EDT
According with the bug 333987, the templates have been modified. Now we can define the visibility of the labels in the Papyrus preferences.

With these new preferences, all Elements which have External Node Labels or Link Labels must have the following Custom Behavior : 
key : org.eclipse.papyrus.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE
class :org.eclipse.papyrus.diagram.common.editpolicies.ShowHideLabelEditPolicy

WARNING : for the links, often you have nothing to do, because the super class UMLConnectionNodeEditPart provides this EditPolicy.

You need to update the plugins org.eclipse.papyrus.def and org.eclipse.papyrus.gmfgenextension and oep.diagram.commin before regenerating your diagram.
Comment 1 Vincent Lorenzo CLA 2011-04-20 09:05:04 EDT
Done for ClassDiagram in R4508
Comment 2 Camille Letavernier CLA 2014-03-25 15:45:45 EDT
I think this is not yet the case for all diagrams/labels. Many errors occur when deleting a DecorationNode from the notation model (i.e. When "Hide" a label means "delete" instead of "setVisible = false").

Raise the severity to Major ; this must be done for 1.0.0 / Luna
Comment 3 Patrick Tessier CLA 2014-05-19 09:57:23 EDT
test has been added 
class diagram has been regenerated 
commit 8dc03ad834c57002c69ad005f0aa565f04ac67a3
Comment 4 Patrick Tessier CLA 2014-05-19 10:14:10 EDT
no need to regenerate activity
Comment 5 Patrick Tessier CLA 2014-05-20 08:06:53 EDT
component regenerated commit 55f59abfdd523e1b3cbd66cb2400300a72d75fac
two links do not have this behavior
Comment 6 Patrick Tessier CLA 2014-06-02 11:56:20 EDT
Bugs fixed and test added