Ease of Use vs. Standard Behavior

Ease of use (including ease of learning) and following Eclipse Workbench standard behavior are two of many things we try to include in all our designs. However, sometimes these two things are at odds and we have to choose one or write extra code to compromise on a solution. Over the past few weeks we’ve run into 3 good examples of this working on RDi 7.5 which I’m going to include here for comments on:

1.  In Eclipse 3.4 (or Eclipse 3.3) the Plug-in Development Environment (PDE) added a new keyboard shortcut: Ctrl + Shift + A to open a plug-in artifact. RSE users will recognize this keyboard shortcut as the “Open Member” dialog.  So now when you press Ctrl + Shift + A, Eclipse detects the conflict and pops up a little conflict dialog:

conflict dialog

We (the RSE development team) had 3 choices: (1) Change our keyboard shortcut, (2) attempt to write some code to disable the PDE action, or (3) leave the conflict. Option (1) was ruled out because changing our action will make existing users frustrated because they are used to the old key sequence, and it doesn’t guarantee there won’t be future conflicts. Option 2 is out because it’s generally considered a bad practice to do something like this in the Workbench.

I believe option 3 is the best option because Eclipse already provides a preference page (General > Keys) where users can customize keyboard shortcuts. So really option 3 leaves it to the user to resolve by either changing the keyboard shortcut assigned to one of the actions or removing the key binding for the one they don’t want.

As a design rule, I’d like us to leverage the existing Eclipse workbench as much as possible for things like this instead of writing more code to resolve the issues (which can make things more complicated in the long run IMHO).  Of course the shortfall of option 3 is that you have to know that you can customize the keyboard shortcuts via the preferences.  The pop-up dialog does hint at this with the “Press Ctrl + Shift + L to open the preference page”.

2. The second example was around the current line color for the debug editor. The default editor used by the debugger is the Remote Systems LPEX Editor. The default current line color for the editor is pale blue that is hard to see. Again this can be changed by a preference (LPEX > Appearance) if you know where to look. In past releases we did some extra coding to override the preference and make the current line darker blue while debugging.. This release some things changed underneath us in the software stack and that no longer work. We ultimately decided to not re-implement this override since the preference already exists.

3. In the RSE you can right click on a local save file (local being on your PC), right click and select the Restore on IBM i… action to restore the save file on one of your IBM i connections (yes connections are now IBM i in 7.5 instead of i5/OS in 7.1 and iSeries before that).  Previously this action ran on the user interface thread and blocked any refreshes of the Workbench (so the Workbench appeared hung during the upload and restore). We wanted to change this to run asynchronously and even give the user the option to run it in the background and continue doing other things. The design question was: what to do when the action completes with errors? The standard Eclipse progress task just puts an icon in the bottom right corner of the workbench with and explanation mark on it:

If you click the icon then a dialog box appears showing the results. Of  course, you have to know to click the icon to see the results. The alternative would be to always show a dialog box when the action completes, but that could become annoying if you are in the middle of doing something like enter some source code. The jury’s still out on this one.

Ultimately we want the RSE to be easy to use and follow standard look and feel guidelines (which makes it easier to use in the long run).  Like every other development team we also have fixed resources and implementing a workaround for something means something else doesn’t get done.

I’d love any comments that new or existing users have on this topic to help us in our future decisions!


2 Comments on “Ease of Use vs. Standard Behavior”

  1. Adam Glauser says:

    Regarding completion of asynchronous tasks, I like the increasingly popular ‘toast’ style notification, ala most instant messaging clients. Does Eclipse provide a toast-style notification method?

  2. Don Yantzi says:

    Great idea Adam. Kevin (a developer on our team) added your comment to our internal work item for this. He also noted that Eclipse is working on a standard implementation for this type of notification:

    http://wiki.eclipse.org/Platform_UI/Notifications

    Jazz (Rational Team Concert) uses this style of notification for builds, changes, and feeds and it’s quite nice (we’ve switched to using RTC for our change management, more on this in an upcoming blog post).


Leave a comment