Bug 222727 - Move Add/Edit/Delete buttons in XML Catalog preference page
Summary: Move Add/Edit/Delete buttons in XML Catalog preference page
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Gabriel Indik CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-03-14 06:59 EDT by Nitin Dahyabhai CLA
Modified: 2008-05-05 15:17 EDT (History)
1 user (show)

See Also:


Attachments
Patch (5.79 KB, patch)
2008-04-01 12:20 EDT, Gabriel Indik CLA
no flags Details | Diff
ScreenShot of catalog with patch applied (198.01 KB, image/jpeg)
2008-04-01 12:21 EDT, Gabriel Indik CLA
no flags Details
Alternative patch (6.76 KB, patch)
2008-04-01 12:25 EDT, Gabriel Indik CLA
bjorn.freeman-benson: iplog+
Details | Diff
Screenshot of catalog with alternative patch applied (191.99 KB, image/jpeg)
2008-04-01 12:26 EDT, Gabriel Indik CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Dahyabhai CLA 2008-03-14 06:59:51 EDT
The Add/Edit/Delete buttons in the XML Catalog preference page are below the tree showing the existing entries, in contrast to almost every other presentation of information where the modifier buttons are on the right.  This can be confusing as the area that users regularly look to for such buttons has none.
Comment 1 Valentin Baciu CLA 2008-03-31 19:32:03 EDT
Gabriel, I think it would be nice if we could get this change in for M6. Otherwise it will have to wait for the next release :-(.

Nitin, do you agree/disagree?
Comment 2 Gabriel Indik CLA 2008-04-01 12:20:15 EDT
Created attachment 94387 [details]
Patch

This patch changes the layout so that buttons are shown on the right of the tree. It also ensures that the button to eliminate entries is labeled "Remove" instead of "Delete" for consistency.
Comment 3 Gabriel Indik CLA 2008-04-01 12:21:18 EDT
Created attachment 94388 [details]
ScreenShot of catalog with patch applied
Comment 4 Gabriel Indik CLA 2008-04-01 12:25:48 EDT
Created attachment 94389 [details]
Alternative patch

This patch includes all of the previous while incorporating a border into the tree.
Comment 5 Gabriel Indik CLA 2008-04-01 12:26:48 EDT
Created attachment 94391 [details]
Screenshot of catalog with alternative patch applied
Comment 6 Valentin Baciu CLA 2008-04-01 12:59:58 EDT
Thanks Gabriel, I've committed the second patch. One thing that could be improved is to make the tree initially wider. True, that will make the page wider but then I think that should be OK. I also don't much like the scroll bars on the details view. Not sure if they are needed or not... Anyway, that's for the future.

Please also accept the bug since you are working on it already.
Comment 7 Gabriel Indik CLA 2008-04-01 13:48:26 EDT
(In reply to comment #6)
> Thanks Gabriel, I've committed the second patch. One thing that could be
> improved is to make the tree initially wider. True, that will make the page
> wider but then I think that should be OK. I also don't much like the scroll
> bars on the details view. Not sure if they are needed or not... Anyway, that's
> for the future.
> Please also accept the bug since you are working on it already.

The tree could be made initially wider, although one has to be careful as the length of the entries can be arbitrarily long, which could stretch the dialog box too much. Setting a maximum stretch implies you could potentially have clipped text (the reason for adjusting the tree size).
The details associated to each entry can also be arbitrarily long, so scrollbars are needed.
Comment 8 Valentin Baciu CLA 2008-04-01 14:19:58 EDT
(In reply to comment #7)

> The tree could be made initially wider, although one has to be careful as the
> length of the entries can be arbitrarily long, which could stretch the dialog
> box too much. Setting a maximum stretch implies you could potentially have
> clipped text (the reason for adjusting the tree size).
> The details associated to each entry can also be arbitrarily long, so
> scrollbars are needed.

I think I meant making the initial size of the tree control a bit wider, not using the lenght of the longest entry key to dictate the width. And you're right, the horizontal scroll in the details is definitely needed. My issue was with the vertical one as the details view appears to alway show only 4 rows or so, but prehaps in some other languages the text will exceed the control height.
Comment 9 Valentin Baciu CLA 2008-04-01 17:03:15 EDT
The patch was released for WTP 3.0 builds > v200804011700.
Comment 10 Gabriel Indik CLA 2008-04-04 17:21:16 EDT
Verified with S-3.0M6-20080404114343
Comment 11 David Williams CLA 2008-04-24 00:44:58 EDT
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword. 
Comment 12 Valentin Baciu CLA 2008-04-24 17:52:04 EDT
Comment on attachment 94387 [details]
Patch

The alternative patch has been committed.
Comment 13 Valentin Baciu CLA 2008-05-05 15:16:34 EDT
Closing.
Comment 14 Valentin Baciu CLA 2008-05-05 15:17:13 EDT
Sorry, clicked on reopen by mistake.
Comment 15 Valentin Baciu CLA 2008-05-05 15:17:30 EDT
Closing.