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

Bug 352549

Summary: [General] LineWidth of a box symbol only applies to compartment separator lines, not to the box boundary
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
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 353700, 353701    
Attachments:
Description Flags
Screenshot for LineWidth issue. none

Description Alain Le Guennec CLA 2011-07-20 05:08:15 EDT
Created attachment 199964 [details]
Screenshot for LineWidth issue.

The LineWidth appearance property of a box symbol only applies to compartment separator lines, not to the box boundary.
Look at attached screenshot, in which all box symbols (blocks, parts) have been given a LineWidth of 10.
Comment 1 Yann Tanguy CLA 2011-08-03 04:19:43 EDT
In r5175 : 
- BorderNodeEditPart and NodeEditPart have been modified to support lineWidth modification
- BorderNodeEditPart and NodeEditPart lineStyle support have been modified (improvement in refresh)
- IPapyrusNodeFigure and PapyrusNodeFigure now support lineWidth modification

Note that some complex figure (ex: Package) or figure that do not inherit from PapyrusNodeFigure have to be corrected.
Note that the EditPart generated code mask setLineWidth() (and setLineType()) implementation. The code generator should be modified (either replace the implementation by a call to super class method or totally remove it) and diagrams regenerated, or diagrams manually modified.
Comment 2 Yann Tanguy CLA 2011-08-03 07:45:17 EDT
(In reply to comment #1)
> In r5175 :
> - BorderNodeEditPart and NodeEditPart have been modified to support lineWidth
> modification
> - BorderNodeEditPart and NodeEditPart lineStyle support have been modified
> (improvement in refresh)
> - IPapyrusNodeFigure and PapyrusNodeFigure now support lineWidth modification

Merge in trunk : r5181.
Comment 3 Alain Le Guennec CLA 2011-08-18 12:19:40 EDT
I wanted to check the fix, but unfortunately, the "Appearance" property tab does no more allow to set the line width of a symbol (only its line color)... Is that on purpose?
Comment 4 Yann Tanguy CLA 2011-08-31 10:50:43 EDT
(In reply to comment #3)
> I wanted to check the fix, but unfortunately, the "Appearance" property tab does
> no more allow to set the line width of a symbol (only its line color)... Is that
> on purpose?

Yes, this is disabled in Papyrus until all diagrams support the feature.
Comment 5 Arnaud Cuccuru CLA 2013-03-13 11:52:27 EDT
Not able to reproduce the bug under Kepler M5
Comment 6 Arnaud Cuccuru CLA 2013-03-13 12:41:39 EDT
Reopening the bug. This works for SysML diagrams, but not for UML diagrams. In UML diagrams, the LineWidth appearance property of a box symbol only applies to compartment separator lines.
Comment 7 Camille Letavernier CLA 2015-04-24 09:04:35 EDT
This works as expected in 1.1

I close the task