Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 25076 - Too much vertical space on Tag Configuration dialog
Summary: Too much vertical space on Tag Configuration dialog
Status: RESOLVED DUPLICATE of bug 30646
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.0   Edit
Assignee: Boris Shingarov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-18 14:54 EDT by Tod Creasey CLA
Modified: 2003-05-26 14:54 EDT (History)
0 users

See Also:


Attachments
Proposed change to inherit from TitleAreaDialog. (2.92 KB, patch)
2002-11-08 01:08 EST, Boris Shingarov CLA
no flags Details | Diff
Proposed change to inherit from TitleAreaDialog. (2.92 KB, patch)
2002-11-08 01:10 EST, Boris Shingarov CLA
no flags Details | Diff
Fixing 1 and 3 (1.24 KB, patch)
2003-02-19 18:49 EST, Boris Shingarov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-10-18 14:54:25 EDT
build 20021018

The Tag Configuration dialog has the top text too close to the top of the dialog
abd a lot of white space in between. You may want to consider using the
TitleAreaDialog as a superclass.
Comment 1 Boris Shingarov CLA 2002-11-08 01:08:05 EST
Created attachment 2342 [details]
Proposed change to inherit from TitleAreaDialog.

For some weird reason, the title does not show up in my GTK installation.  Will
investigate prior to going to commit.
Comment 2 Boris Shingarov CLA 2002-11-08 01:10:04 EST
Created attachment 2343 [details]
Proposed change to inherit from TitleAreaDialog.

For some weird reason, the title does not show up in my GTK installation.  Will
investigate prior to going to commit.
Comment 3 Michael Valenta CLA 2002-12-13 15:23:04 EST
Fix released to HEAD
Comment 4 Kevin McGuire CLA 2003-02-06 17:52:44 EST
There are still a few problems:

1. The banner text doesn't wrap and can end up under the banner icon.  At the 
default dialog setting on my machine, the end of the banner text couldn't be 
read.  When working on dialogs, resize behaviour should always be checked for.

2. The banner icon is some basic icon. It should be the CVS icon. 
See "Checkout Into".

3. The title of the dialog should be renamed.  It currently says, "Tag 
Configuration for Eclipse VCM".  It should say, "Configure Branches and 
Versions" to match the menu action name.
Comment 5 Kevin McGuire CLA 2003-02-06 17:59:51 EST
Re: #1:  We should report lack of wrapping to JFace.  This may have been a 
stylistic decision on their part.  Either way, we should shorten the 
sentence.  We have the second line of the banner to use which *does* wrap.
Comment 6 Tod Creasey CLA 2003-02-07 08:15:13 EST
SWT.WRAP works different ways on different platforms - frequently you have to 
put a /n in to get it to break where you want it to (sometimes it will only 
break on punctutation).

Please pop by if you want more details/have case for me to look at.
Comment 7 Boris Shingarov CLA 2003-02-10 12:33:08 EST
General comment:
It is true that making Label wrap consistently across platforms is pain, as 
wrap semantics is different on e.g. Windows and GTK, and there were very 
heated arguments betweem Steve and me about the right way to do it.  The final 
understanding, however, was that it should be considered "done, working" now.

More specific comment:
The 'banner text wrapping' that Kevin mentioned, refers to titleLabel.  Right 
now, it's created with SWT.LEFT style.  The Tag Configuration Dialog displays 
a long title, and the discussion was about whether the official 'style 
guideline' is 'no long banners', or should the banner be wrapped.
Comment 8 Boris Shingarov CLA 2003-02-14 15:04:13 EST
I just talked to Tod, and the answer to the last question is: never wrap in 
titles.
Comment 9 Boris Shingarov CLA 2003-02-19 18:49:50 EST
Created attachment 3586 [details]
Fixing 1 and 3
Comment 10 Boris Shingarov CLA 2003-02-20 13:19:40 EST
Re: 2.  I looked which places where we use the big icons, and it appears that 
generally we use the big icons in wizards and don't use icons in dialogs 
(including the original TagConfigurationDialog).
In fact, the wizards have specialized (wizard-by-wizard) icons, and it is not 
clear which of them would be appropriate for the TagCofigurationDialog.
Therefore I propose removing the generic icon:

protected Control createDialogArea(Composite parent) {
	setTitle(Policy.bind("TagConfigurationDialog.4")); //$NON-NLS-1$
+	setTitleImage(null);
	Composite shell = new Composite(parent, SWT.NONE);
Comment 11 Kevin McGuire CLA 2003-02-20 17:59:21 EST
patches released to HEAD
Comment 12 Michael Valenta CLA 2003-02-25 11:58:17 EST
There are strange white visual artifacts that appear at the top of the dialog 
on both Windows and GTK. It's probably related to the use of TitleAreaDialog.
Comment 13 Boris Shingarov CLA 2003-02-25 12:14:57 EST
Re: white visual artifacts: see bug 32839
Comment 14 Michael Valenta CLA 2003-05-06 09:20:18 EDT

*** This bug has been marked as a duplicate of 30646 ***