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

Bug 498205

Summary: The title of the view should be limited to one line
Product: [Modeling] Sirius Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: PropertiesAssignee: Stephane Begaudeau <stephane.begaudeau>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: julien.dupont, pierre-charles.david, steve.monnier
Version: 4.0.0Keywords: triaged
Target Milestone: 4.1.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/78463
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7765d65c2d18082bb757c41d712b3f42ff9cb965
https://git.eclipse.org/r/79506
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a26b61d8a8a04d6219821ed96e0dc23d96f3c768
Whiteboard:
Attachments:
Description Flags
Use case to reproduce problem
none
Label displayed on 2 lines none

Description Stephane Begaudeau CLA 2016-07-20 10:35:48 EDT
The title of the view currently accept multiple lines which is quite ugly. It should be limited to one line. We could improve the service eefViewText to trim the text to prevent multiline labels.
Comment 1 Steve Monnier CLA 2016-07-21 08:22:58 EDT
Hi,
	
	thanks for your detailled bug report.
Comment 2 Eclipse Genie CLA 2016-08-04 09:10:45 EDT
New Gerrit change created: https://git.eclipse.org/r/78463
Comment 4 Eclipse Genie CLA 2016-08-23 08:57:52 EDT
New Gerrit change created: https://git.eclipse.org/r/79506
Comment 6 Pierre-Charles David CLA 2016-09-01 08:14:27 EDT
Fixed.
Comment 7 Julien Dupont CLA 2016-09-08 11:19:44 EDT
If the name is very long the label is display on 2 lines. It should be the same behaviors as the \n.

To reproduce problem
- open in model/My.aird/new Diagram
- Select element with name E2RenameWithVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryLongName
The label is display on 2 lines KO

Edit the label and add a \n between Long and Name the label is display on 2 lines KO
Comment 8 Julien Dupont CLA 2016-09-08 11:21:34 EDT
Created attachment 264046 [details]
Use case to reproduce problem
Comment 9 Julien Dupont CLA 2016-09-08 11:22:12 EDT
Created attachment 264047 [details]
Label displayed on 2 lines
Comment 10 Pierre-Charles David CLA 2016-09-29 05:35:21 EDT
After discussing the matter with Stéphane, it looks like the separate issue which made Julien reopen the ticket can not be reasonably fixed. Closing as the original issue itself is fixed and had been validated.
Comment 11 Pierre-Charles David CLA 2016-10-18 11:07:40 EDT
Available in Sirius 4.1.0, see https://wiki.eclipse.org/Sirius/4.1.0 for details.