Bug 330057 - [call hierarchy] Improve 'Remove from view' action's UI
Summary: [call hierarchy] Improve 'Remove from view' action's UI
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
Depends on:
Blocks:
 
Reported: 2010-11-12 01:25 EST by Deepak Azad CLA
Modified: 2010-11-22 09:33 EST (History)
2 users (show)

See Also:


Attachments
screenshot (25.69 KB, image/png)
2010-11-12 01:25 EST, Deepak Azad CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2010-11-12 01:25:22 EST
Created attachment 182957 [details]
screenshot

See attached screenshot of context menus of Call Hierarchy view and Search View

2 things..
1) 'Remove from view' should use the same icon as the one is search view
2) The placement of this action is inconsistent with the Search view. In Search view the action is placed along with Copy actions, but in Call Hierarchy view it is not. (I am fine if this is fixed in the Search view, I just want the placement to be consistent)
Comment 1 Dani Megert CLA 2010-11-12 05:53:51 EST
I agree. Icon added in HEAD (RemoveFromViewAction rev. 1.5).

Regarding the placement of the action: I think the Call Hierarchy placement is better as normally the command that is along with Copy is 'Delete' on the element.

Markus, +1?
Comment 2 Deepak Azad CLA 2010-11-12 06:01:22 EST
(In reply to comment #1)
> Regarding the placement of the action: I think the Call Hierarchy placement is
> better as normally the command that is along with Copy is 'Delete' on the
> element.
Then we improve it in Search View? As both actions do the same thing - remove the item from the view and even have the key binding.

I just want the placement to be consistent, I filed this bug because I do not reach the action in the context menu quick enough in both the views. It is in one place in one view and another place in other view...
Comment 3 Dani Megert CLA 2010-11-12 06:06:48 EST
I hear you - you now said two times what you *want* and I already agreed in comment 1 ;-)

>Then we improve it in Search View?
Yes.
Comment 4 Deepak Azad CLA 2010-11-12 06:09:39 EST
(In reply to comment #3)
> >Then we improve it in Search View?
> Yes.
Alright, thanks! You did not say this in comment 1, at least not explicitly :)
Comment 5 Dani Megert CLA 2010-11-12 07:12:07 EST
> You did not say this in comment 1, at least not explicitly :)
First sentence: "I agree". What can I do more than agreeing with you ;-)
Comment 6 Deepak Azad CLA 2010-11-12 10:25:02 EST
(In reply to comment #1)
> Regarding the placement of the action: I think the Call Hierarchy placement is
> better as normally the command that is along with Copy is 'Delete' on the
> element.
The 'Remove' commands in question here do 'delete' the element from the view and the key binding is also 'Delete', so I think Search view is better.
Comment 7 Dani Megert CLA 2010-11-12 10:30:22 EST
(In reply to comment #6)
> (In reply to comment #1)
> > Regarding the placement of the action: I think the Call Hierarchy placement is
> > better as normally the command that is along with Copy is 'Delete' on the
> > element.
> The 'Remove' commands in question here do 'delete' the element from the view
> and the key binding is also 'Delete', so I think Search view is better.

Yeah, but 'delete' normally deletes the element. Sorry, here I disagree ;-)
Comment 8 Deepak Azad CLA 2010-11-19 10:21:58 EST
(In reply to comment #1)
> Regarding the placement of the action: I think the Call Hierarchy placement is
> better as normally the command that is along with Copy is 'Delete' on the
> element.
> 
> Markus, +1?

ping..
Comment 9 Markus Keller CLA 2010-11-19 12:36:08 EST
I agree with Deepak: We use the Delete command with the Delete key-binding, so I also expect to see this in the usual place for Delete actions.

The action name clearly says it doesn't delete the resource, so that shouldn't be too confusing.

What *was* confusing was that the Remove action had the wrong icon.
I've fixed that in HEAD of RemoveFromViewAction.
Comment 10 Dani Megert CLA 2010-11-22 06:41:55 EST
> What *was* confusing was that the Remove action had the wrong icon.
> I've fixed that in HEAD of RemoveFromViewAction.
My bad. I picked the same icon as the Delete action has, since we retarget that one. Thanks for fixing this.

> The action name clearly says it doesn't delete the resource, so that shouldn't
> be too confusing.
Unfortunately the Edit > Delete menu is not a retarget action hence it will still say "Delete".

> I agree with Deepak: We use the Delete command with the Delete key-binding, so
> I also expect to see this in the usual place for Delete actions.
Discussed this with Markus: the 'Delete' action in the CCP group deletes the element while the Remove action works on the view, hence it makes sense to put it into a different group.

We also decided that it should be the last element in the group.
Comment 11 Dani Megert CLA 2010-11-22 09:33:42 EST
Fixed in HEAD (SearchView.java rev. 1.76).
Available in builds >= N20101122-2000.

Also filed bug 330797 and bug 330802.