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

Bug 355870

Summary: [All Diagrams] Can't change what parts of a label are to be displayed
Product: [Modeling] Papyrus Reporter: Alain Le Guennec <alain.leguennec>
Component: DiagramAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cletavernier, eclipse-bugzilla, raphael.faudou, yann.tanguy
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 364009, 364010    
Bug Blocks:    

Description Alain Le Guennec CLA 2011-08-25 12:07:41 EDT
One cannot anymore change what parts of a label are to be displayed, e.g. for a port on a BBD or IBD.
It used to be possible to choose whether to display such or such part of the label (e.g. the name, the type, the direction, the visibility, etc).
Comment 1 Yann Tanguy CLA 2011-08-29 02:52:54 EDT
Possible in preference, the property page allowing this is not implemented yet for IBD and BDD.
Comment 2 Camille Letavernier CLA 2011-08-29 04:23:29 EDT
In order to be edited from the property page, the elements need to have the right Edit Policy. In this case, the edit policy is "MaskManagedLabelPolicy", provided by the inherited Class Diagram.

Until the properties (and operations) from IBD and BDD implement this edit policy, it won't be possible to edit the label display from the property page.
Comment 3 Yann Tanguy CLA 2011-08-31 11:17:36 EDT
Fixed in r5346 (0.8.1) and r5347 (trunk) - See:

355943: [SysML Internal Block Diagram] Can't change what parts of a part label are to be displayed for a part on an IBD
https://bugs.eclipse.org/bugs/show_bug.cgi?id=355943

and 

356276: [Property View] The label masks in appearance view should use IMaskManageLabelEditPolicy#getMasks()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=356276
Comment 4 Yann Tanguy CLA 2011-09-02 04:03:56 EDT
*** Bug 348655 has been marked as a duplicate of this bug. ***
Comment 5 Raphael Faudou CLA 2011-11-16 18:34:54 EST
what about other diagrams than BDD and IBD?
in stateMachine for isntance, it is not possible to hide the guard of a transition.
For consistency, can you apply one of the following options?
 * Either reOpen this bug as some other diagrams are not handled
 * Else change label to address only BDD and IBD.
Comment 6 Yann Tanguy CLA 2011-11-17 05:00:55 EST
Clones added for IBD & BDD, general bug reopened.
Comment 7 Camille Letavernier CLA 2013-07-05 12:45:58 EDT
> in stateMachine for isntance, it is not possible to hide the guard of a transition.

The case is different for state machines, as the guard of the transition is a distinct label (Different from the transition's name). It can be hidden with Filters > Manager connector labels

I close this task. Each Edit Part needs to implement the IMaskManagedEditPolicy, when this is relevant. Then the properties view will work just fine. Specific bugs may be opened for relevant cases