Bug 25731 - [Navigator] Replacing linking with explicit synchronize action on views
Summary: [Navigator] Replacing linking with explicit synchronize action on views
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC other
: P2 major (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Lynne Kues CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 2069 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-05 11:36 EST by Nick Edgar CLA
Modified: 2003-03-20 14:59 EST (History)
3 users (show)

See Also:


Attachments
temporary image to use for this fix (896 bytes, image/gif)
2002-11-11 16:10 EST, Lynne Kues CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-11-05 11:36:07 EST
Build 20021030

Many people have complained about editor linking losing their context, 
particularly when you close an editor and it warps the view to select the newly 
activated editor, which you often have no interest in at the time.

Erich and I have agreed that we should replace the preferences for editor 
linking with explicit synchronize actions on the relevant views (Navigator, 
Package Explorer in the SDK).

There should be an action in the view's toolbar with tooltip "Synchronize".
The same action should appear in the view's context menu (not the triangle view 
menu since it's not a view setting).

This needs to be done for 2.1, preferrably for M3.
Comment 1 Nick Edgar CLA 2002-11-05 11:37:14 EST
Should see if VCM has a synchronize icon we can steal.
Comment 2 Knut Radloff CLA 2002-11-06 18:05:01 EST
Are you saying that the synchronize action should link both ways or just from 
view to editor?
Comment 3 Nick Edgar CLA 2002-11-07 09:02:46 EST
The packages view always does forward linking (selecting in view activates 
editor if open) even if the linking preference is turned off.  So the 
preference only controls backwards linking (changing view selection when 
switching editors).  We could do the same in the Navigator.
Comment 4 Nick Edgar CLA 2002-11-07 09:03:35 EST
So to clarify, the sync button would just sync backwards (update the view's 
selection to be the active file).
Comment 5 Randy Hudson CLA 2002-11-07 14:10:14 EST
"refresh" is already on the context menu in the Navigator, and is a synonym 
for "synchronize", but does something different. The word "synchronize" will be 
confusing, and will make the context menu even larger.

Show in packages view is useful, but the only reason I do this is so I can 
right click on the CU and do something like "Team->Commit...". If this is the 
reason for linking the packages/naviagtor view, why not put the IResource's 
context menu somewhere else.  Perhaps the File Menu? Or maybe it is the 
Editor's responsibility to put Actions like "Commit.." somewhere.  In fact, 
only the editor knows how many resources it is really editing.
Comment 6 Knut Radloff CLA 2002-11-07 14:22:21 EST
I think it would be bad to have an action in the context menu that does not 
operate on the selected resource or even its project. Instead it would change 
the selected resource.
Instead of having a view action why don't we use a workbench action?
The Java Coding action set adds a "Show in Navigator View" action to the 
Navigate menu. It opens the navigator if it is not already visible. I think 
this is exactly what we want, on a more global level. We should just make that 
a Navigator action in ui. 
This would also map nicely to the new Go To Resource workbench action. We could 
add the Synchronize/Show in Navigator action to the same action set.
Comment 7 Knut Radloff CLA 2002-11-07 14:27:03 EST
I typed my comment while Randy typed his. 
I think the synchronize context menu item is confusing, regardless of the name. 
If it's in the context menu you couldn't really name it "Show in Navigator 
View" because you are already there. "Show Active Editor" is not very good 
either.
In response to Randy's comment: I often use the editor->view linking to give me 
a starting point for browsing resources. For example when I'm looking for a 
messages.properties.
Comment 8 Nick Edgar CLA 2002-11-07 15:32:51 EST
*** Bug 2069 has been marked as a duplicate of this bug. ***
Comment 9 Nick Edgar CLA 2002-11-07 16:10:02 EST
When Erich was here last week we discussed this.
We feel that the "Show in XYZ View" approach does not scale (whether on the 
context menu or main menus).  For example, WSAD and WSADIE add several 
Navigator-like views.  Would each have a menu item?
We felt that having an explicit sync button on the toolbar of the view would be 
cleaner.  It means you have to navigate to the view first, which will require 
more steps than currently, particularly if the view is not already showing.  It 
shouldn't be too bad if it already is showing though, and may actually be 
faster: clicking an already visible button rather than choosing an item from a 
(cluttered) context menu.

I agree that having both "Synchronize" and "Refresh" is confusing.  How 
about "Sync with Editor"?

We need to have a menu equivalent for accessibility, but I agree that it would 
be confusing for an action on the context menu to just change the selection.  
The view menu should only be used for view settings (filtering, sorting, etc.).
Let's go with Knut's suggestion and put it on the Navigate menu, where 
the "Show in XYZ" items are now (it will replace them).
Comment 10 Lynne Kues CLA 2002-11-11 14:45:04 EST
Didn't find a suitable icon to reuse within the CVS realm, so NE put in a 
request to Linda for an icon.
Comment 11 Lynne Kues CLA 2002-11-11 16:10:24 EST
Created attachment 2373 [details]
temporary image to use for this fix
Comment 12 Lynne Kues CLA 2002-11-11 17:25:54 EST
Added toolitem to Navigator toolbar and added item to Workbench->Navigate 
menu.  The Navigate menu item is a RetargetAction that will be enabled when the 
associated view has focus.  See IWorkbenchActionConstants>>SYNC_EDITOR.

Removed the Workbench-->Link Navigator selection to editor preference.

Included temporary icon to use for the toolbar image.
Comment 13 Lynne Kues CLA 2003-03-20 14:59:37 EST
Verified for RC3 (200303192032).