Bug 312177 - Make "Add new expression" entry Expressions window less confusing.
Summary: Make "Add new expression" entry Expressions window less confusing.
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.6 RC2   Edit
Assignee: Pawel Piech CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
Depends on:
Blocks:
 
Reported: 2010-05-09 05:20 EDT by Ivan CLA
Modified: 2010-05-18 10:05 EDT (History)
3 users (show)

See Also:
darin.eclipse: review+
curtis.windatt.public: review+


Attachments
Current look (27.33 KB, image/png)
2010-05-13 12:54 EDT, Ivan CLA
no flags Details
mocked up proposal (20.65 KB, image/png)
2010-05-13 17:34 EDT, Andrew Niefer CLA
no flags Details
Screenshot mockup with the standard add icon. (16.75 KB, image/png)
2010-05-14 11:19 EDT, Pawel Piech CLA
no flags Details
Patch adding the plus icon for the "Add new expression" element and actions. (5.67 KB, patch)
2010-05-17 19:57 EDT, Pawel Piech CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan CLA 2010-05-09 05:20:34 EDT
Build Identifier: 20100318-1801

In Expressions window the line "Add new expression" is very irritating when you are debugging some project with a number of expressions. Some checkbox/option should be added to switch off this line.

Reproducible: Always

Steps to Reproduce:
1. Open Expressions window.
Comment 1 Curtis Windatt CLA 2010-05-10 11:58:19 EDT
Why is it annoying to have an extra entry at the end of the list?  Having the entry makes it very easy to add a new expression.  Unless having the entry is causing a well defined significant problem with the user workflow, we won't add a preference to tweak it.  Closing as WONTFIX until a valid reason is suggested.
Comment 2 Pawel Piech CLA 2010-05-10 12:49:32 EDT
The Add new expression entry is only used when the expressions view is showing columns, which is also a new feature in 3.6.  Would it help you to revert to the no columns layout (uncheck View Menu -> Layout -> Show Columns)?
Comment 3 Ivan CLA 2010-05-12 05:23:48 EDT
Thanks, the view without columns is much better for me personally. I couldn't understand what was changed.

Concerning a valid reason:
1) When you open a structure-tree for some object, this line ("Add new expression") may coalesce with data structure. And it is not convenient when you are distracted from the main task - debugging.
2) This is a duplication of context menu item in the same window.
Also as additional tweaks - line colors/styles may be adjustable.
In any case even if not doing line adjustable, why not to stretch it over all columns and center it or something like this. Currently this line is very non-intuitive.

Btw, there are also some bugs with "Edit Expression" in column view (it sometimes becomes grayed out without a reason), I'll try to dig when this occurs and report another bug.
Comment 4 Pawel Piech CLA 2010-05-12 11:13:52 EDT
(In reply to comment #3)
> Thanks, the view without columns is much better for me personally. I couldn't
> understand what was changed.
Hi Ivan,
As a defect, would it satisfy your regression complaint if we changed the default layout to now show columns, then treat the rest of your suggestions as enhancements to this feature?

> Concerning a valid reason:
> 1) When you open a structure-tree for some object, this line ("Add new
> expression") may coalesce with data structure. And it is not convenient when
> you are distracted from the main task - debugging.
By coalesce, do you mean that it visually blends with the debugger data?

> 2) This is a duplication of context menu item in the same window.
I don't quite understand this point, could you provide a screenshot explaining the context menu point?

> Also as additional tweaks - line colors/styles may be adjustable.
Do you mean that it would help if we changed the color of "Add new expression" to distinguish it more from user data?

> In any case even if not doing line adjustable, why not to stretch it over all
> columns and center it or something like this. Currently this line is very
> non-intuitive.
If you have the time to put together a screenshot mockup of the solution you're seeking that would be very helpful

> Btw, there are also some bugs with "Edit Expression" in column view (it
> sometimes becomes grayed out without a reason), I'll try to dig when this
> occurs and report another bug.
That would be helpful as well.  Thank you.
Comment 5 Ivan CLA 2010-05-13 12:54:44 EDT
Created attachment 168417 [details]
Current look

Image shows the duplication of functionality (red lines). Also "Add new expression" looks like a field of variable.
Comment 6 Ivan CLA 2010-05-13 13:09:42 EDT
Hi Pawel,

> As a defect, would it satisfy your regression complaint if we changed the
> default layout to now show columns, then treat the rest of your suggestions as
> enhancements to this feature?
Maybe it is Ok, but I would like of course at least possibility to switch the line off. Because I personally cannot use column view now.

> By coalesce, do you mean that it visually blends with the debugger data?
Yes. Image shows this.

> Do you mean that it would help if we changed the color of "Add new expression"
to distinguish it more from user data?
Yes. But what is comfortable for me can be irritating for others and vice versa, so configurable is better.

> If you have the time to put together a screenshot mockup of the solution you're
> seeking that would be very helpful
I don't know yet what is better variant. As for me absence is the best now. Maybe I will get accustomed to it, but I don't rely on it to much :).
Comment 7 Andrew Niefer CLA 2010-05-13 17:34:28 EDT
Created attachment 168477 [details]
mocked up proposal

(In reply to comment #6)
> > By coalesce, do you mean that it visually blends with the debugger data?
> Yes. Image shows this.

I agree with this, perhaps a solution would be to add an icon to the "Add new Expression" to help make the vertical alignment more obvious.  See attached mockup.
Comment 8 Pawel Piech CLA 2010-05-14 11:19:22 EDT
Created attachment 168548 [details]
Screenshot mockup with the standard add icon.

(In reply to comment #7)
> I agree with this, perhaps a solution would be to add an icon to the "Add new
> Expression" to help make the vertical alignment more obvious.  See attached
> mockup.

Thank you for the constructive suggestion :-)  Unfortunately, the "Add expression" icon is also used as the default expression icon so in some ways it blends in with the rest of the expressions even more.  What if we switched the add icon to something more intuitive (see mockup).
Comment 9 Darin Wright CLA 2010-05-14 11:34:07 EDT
+1 for the "+". I think we need the icon to be different than the rest and convey the message of "adding".
Comment 10 Pawel Piech CLA 2010-05-14 12:12:33 EDT
(In reply to comment #9)
> +1 for the "+". I think we need the icon to be different than the rest and
> convey the message of "adding".

Cool!  Ivan will it satisfy your concerns, (see also comments from the community: http://eclipse-debug.blogspot.com/2010/05/add-new-expression-inline-in.html)?
Comment 11 Pawel Piech CLA 2010-05-14 12:13:47 EDT
I guess I should make a patch before asking for a review :-)  It'll have to wait till Monday though as I have some other priorities today.
Comment 12 Ivan CLA 2010-05-16 10:07:38 EDT
As for "+", I think it should be better than current variant.
However, why not to add checkbox into "Select Columns" window (possibly renaming the window and calling menu item to something like "Column View Options"). I personally also don't like to see a number of boxes and fields at a time in preferences, but adding a checkbox to this window should not make things worse. Especially taking into account this window is only available in columns view.
Comment 13 Pawel Piech CLA 2010-05-17 19:57:58 EDT
Created attachment 168841 [details]
Patch adding the plus icon for the "Add new expression" element and actions.
Comment 14 Pawel Piech CLA 2010-05-17 20:00:03 EDT
This patch includes changes to plugin XML, content provider and JDT javadoc.  Darin and Curtis please approve for RC2
Comment 15 Pawel Piech CLA 2010-05-17 20:04:00 EDT
(In reply to comment #12)
> As for "+", I think it should be better than current variant.
> However, why not to add checkbox into "Select Columns" window (possibly
> renaming the window and calling menu item to something like "Column View
> Options"). I personally also don't like to see a number of boxes and fields at
> a time in preferences, but adding a checkbox to this window should not make
> things worse. Especially taking into account this window is only available in
> columns view.

Thank you for your suggestion though I would rather avoid adding the new preference (in preferences dialog or otherwise).  If you still feel that this solution is inadequate please open a new enhancement request and if it gets support from others in the community we'll certainly consider it again.
Comment 16 Darin Wright CLA 2010-05-18 09:31:52 EDT
+1
Comment 17 Curtis Windatt CLA 2010-05-18 10:04:49 EDT
+1 fixed in HEAD.
Comment 18 Curtis Windatt CLA 2010-05-18 10:05:07 EDT
Verified by two committers.