Bug 49504 - [Dialogs] JAR Export; Confirm replace dialog; path should be readable [jarcreation]
Summary: [Dialogs] JAR Export; Confirm replace dialog; path should be readable [jarcre...
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2004-01-04 15:06 EST by Sebastian Davids CLA
Modified: 2004-12-10 14:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids CLA 2004-01-04 15:06:04 EST
Create an extra long path (e.g.
C:\programs\eclipse\eclipse-SDK-I20031125-win32\eclipse\workspace\test\test.jar)
for the JAR and run the wizard twice.

On the second run you'll be prompted to confirm the replace. 

The path on that dialog is not readable.

The dialog should either be resizable (or size itself according to the path) or
it should use a strategy to shorten the path (like C:\foo\...\bar\filename).
Comment 1 Dani Megert CLA 2004-01-05 05:37:08 EST
This is a general issue with the MessageDialog (or to be more clear: the
wrapping behavior of Label): it automatically breaks but only if there are white
space characters. It should either wrap or allow to see the full text somehow.
Comment 2 Tod Creasey CLA 2004-01-05 11:54:11 EST
This is an issue with the wrap algorithms on many platforms - this sort of 
thing cannot be done generically as we would have to take the lowest common 
denominator (wrap only on space) and shorten based on that which would break 
platform look and feel everywhere.
Comment 3 Sebastian Davids CLA 2004-01-05 15:21:51 EST
I agree that MessageDialog should not/cannot have a wrapping strategy for its
message.

But:

The path should be shortened *before* it is stuffed into the dialog as its message.

@@ Side note @@

Wasn't there a mention from one of you guys in a email list/newsgroup somewhere
that there would/should be a generic path "shortener" for the entire Eclipse
platform to use?
Comment 4 Tod Creasey CLA 2004-02-11 18:06:23 EST
There has been a suggestion but no plan yet. Please feel free to provide a 
suggested implementation.
Comment 5 Sebastian Davids CLA 2004-12-10 14:58:32 EST
This has been fixed in the meantime.
Comment 6 Sebastian Davids CLA 2004-12-10 14:58:46 EST
.