Bug 203114 - [api] File transfer mode Preference Page usability improvements
Summary: [api] File transfer mode Preference Page usability improvements
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api, investigate
: 203357 (view as bug list)
Depends on: 199773 203357 208951
Blocks:
  Show dependency tree
 
Reported: 2007-09-12 14:08 EDT by Martin Oberhuber CLA
Modified: 2009-06-17 14:45 EDT (History)
2 users (show)

See Also:


Attachments
patch with some UI improvements (16.92 KB, patch)
2007-11-15 12:28 EST, David McKnight CLA
no flags Details | Diff
modified original patch to provide support for restore (17.94 KB, patch)
2007-11-15 12:42 EST, David McKnight CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-09-12 14:08:12 EDT
+++ This bug was initially created as a clone of Bug #199773 +++

The file transfer mode preference page (Remote Systems > Files) has a listbox to select file extensions, with radio buttons coupled to the selection of the listbox. This is very unintuitive.

A table showing extension + mode ("binary" | "text") should be used instead of
the radio buttons coupled to selection.

The "Add" Button should allow entering the pattern and the desired type at the same type.

Pattern Matching should be possible not only by glob patterns ("*.xml") but also based on Eclipse Content Types, which use more sophisticated matchers (e.g. XML files are categorized based on contents <xml?). When pressing Add, the user should be able to chose the matcher (filename pattern or content type), and the file type. In the table of modes, the kind of matcher could be indicated by an Icon.

The default transfer mode (when no matcher matches) could also be indicated in the table, with a special icon (matcher, name="default").
Comment 1 Martin Oberhuber CLA 2007-09-13 16:25:47 EDT
Also, the SystemFileTransferModeRegistry should not have any internal invisible default-defaults. Only the user-visible settings should be applied. This is related to bug #203357 (special handling of XML files).
Comment 2 David McKnight CLA 2007-11-14 14:09:19 EST
In my fix for bug 208951, I've changed things so that we no longer have hidden file transfer mode preferences.  Instead these are all explicitly shown in the preference page.   The defaults are supplied via the new remoteFileType extension point.

As for the XML always being treated as binary, I've taken out that code and simply defaulted XML to be binary in the preferences.
Comment 3 David McKnight CLA 2007-11-14 14:12:22 EST
*** Bug 203357 has been marked as a duplicate of this bug. ***
Comment 4 David McKnight CLA 2007-11-15 12:00:58 EST
I hadn't dealt with the usability issues so I'm reopening this for that.
Comment 5 David McKnight CLA 2007-11-15 12:28:50 EST
Created attachment 82982 [details]
patch with some UI improvements

In this patch, I've made the following enhancements:

-removed the binary/text mode radios (not for default though)
-show binary/text cell editor combo in the table itself
-icons for text are show, while for binary, we use binary decorator
-a newly added file type automatically picks up the default file transfer mode
Comment 6 David McKnight CLA 2007-11-15 12:42:12 EST
Created attachment 82984 [details]
modified original patch to provide support for restore
Comment 7 David McKnight CLA 2007-11-15 12:46:17 EST
The patch doesn't address all suggestions here. In particular it doesn't change the pattern matchers to use the more sophisticated Eclipse Content Types.  I don't think the matchers for Team use this either though.

Martin, could you take a look?  I'm thinking that maybe we could put the matchers in a separate defect so that we can deal with the basic usability issues up-front.
Comment 8 David McKnight CLA 2007-11-15 15:59:55 EST
I've committed the current changes to cvs.  These also include a new reinit() method for the SystemFileTransferModeRegistry for restoring defaults.
Comment 9 Kevin Doyle CLA 2007-11-16 15:39:51 EST
Keyboard accessibility is a problem with the table.  You can't change the File Transfer mode using the keyboard.  The Team's preference page gets around this by adding a Change button that will switch between Binary and Ascii on the selected row in the table.
Comment 10 David McKnight CLA 2007-11-26 11:02:19 EST
(In reply to comment #9)
> Keyboard accessibility is a problem with the table.  You can't change the File
> Transfer mode using the keyboard.  The Team's preference page gets around this
> by adding a Change button that will switch between Binary and Ascii on the
> selected row in the table.
> 

I added a toggle button to address the switching between binary and text. 
Comment 11 David McKnight CLA 2007-11-26 11:08:09 EST
A fair amount of changes went in here to address the key usability issues.  I see the "sophisticated" pattern matchers as being a separate enhancement that I don't have time too look at right now.  Should we leave this defect open so that we can look at that or close it and open a separate enhancement request?
Comment 12 Martin Oberhuber CLA 2007-11-27 14:42:25 EST
Close this and open a separate one.
Comment 13 David McKnight CLA 2007-11-27 15:07:31 EST
I've opened a new defect to track the pattern matching enhancement: Bug 211120. I'm closing this one now.