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

Bug 366543

Summary: [Progress] Text in progress dialog is truncated even if progress dialog has plenty of space
Product: [Eclipse Project] Platform Reporter: Christophe Cornu <christophe.cornu+eclipse>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: dj.houghton, ob1.eclipse, remy.suen
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
truncated message in progress dialog none

Description Christophe Cornu CLA 2011-12-13 09:18:06 EST
Build Identifier: 

Found in Eclipse 3.5.2 but John Arthorne also found it in the latest.

@johna from your days on IProgressMonitor, do you know if the Eclipse progress dialog takes the liberty to truncate messages? "Block...g for background work to complete" is strangely truncated.

RTC probably can't do anything aside of reporting this to Eclipse after we confirm we've got nothing to do with this...

3. John Arthorne, Dec 7, 2011, 12:54 PM
Yes it does. org.eclipse.ui.internal.progress.ProgressInfoItem#setMainText does:

        progressLabel
                .setText(Dialog.shortenText(getMainTitle(), progressLabel));

I suggest filing this against Eclipse.

Reproducible: Always

Steps to Reproduce:
See screenshot.
Note that now most users have wide 16/9 screens, it's best to avoid hardcoded truncated strings if possible. Instead imagine we have a JFace Text widget that uses the SWT text or styled text widget and automatically truncates its content to make it fit in one line based on its current width... And the tooltip on that widget would give the full non truncated text to users, and screen readers would get the full string too.
Comment 1 Christophe Cornu CLA 2011-12-13 09:18:59 EST
Created attachment 208312 [details]
truncated message in progress dialog
Comment 2 Christophe Cornu CLA 2011-12-13 09:19:41 EST
Backlink to RTC bug: https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/178293
Comment 3 Eric Moffatt CLA 2012-02-08 16:26:53 EST
Just talked with Christophe and he's OK with deferring this to post-4.2...

I'll put it into M7 for now until a 4.3 bucket shows up so it won't just go back into the general pool.
Comment 4 Christophe Cornu CLA 2012-03-21 13:25:51 EDT
Adding another related backlink:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/202848
Comment 5 DJ Houghton CLA 2013-08-15 09:55:43 EDT
Also a problem with: 
Version: 3.8.2
Build id: M20130131-0800
Comment 6 Eclipse Genie CLA 2020-01-09 15:38:39 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.