Bug 24753 - [UX] Add Show Next/Previous Buttons
Summary: [UX] Add Show Next/Previous Buttons
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 2.0.1   Edit
Hardware: PC All
: P5 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 80894 (view as bug list)
Depends on:
Blocks: 193608
  Show dependency tree
 
Reported: 2002-10-14 11:57 EDT by Simon Archer CLA
Modified: 2019-09-06 15:37 EDT (History)
4 users (show)

See Also:


Attachments
showing the different changes (110.15 KB, image/jpeg)
2002-12-01 11:47 EST, Sebastian Davids CLA
no flags Details
the icons (2.29 KB, application/octet-stream)
2002-12-01 11:48 EST, Sebastian Davids CLA
no flags Details
adds next/previous button, rearranges menus, different remove icon (17.04 KB, patch)
2002-12-01 12:00 EST, Sebastian Davids CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Archer CLA 2002-10-14 11:57:49 EDT
It would be useful if the Bookmark view had "Show Next" and "Show Previous" 
buttons just like the Search view has.

Also on the subject of inconsistency...the "Delete" button is a red X on the 
Bookmark view and the Task view, but is a horizontal blue bar on the Search 
view and the Breakpoints view.)
Comment 1 Sebastian Davids CLA 2002-12-01 11:47:43 EST
Created attachment 2599 [details]
showing the different changes

shows the changes in menus and views
Comment 2 Sebastian Davids CLA 2002-12-01 11:48:50 EST
Created attachment 2600 [details]
the icons

have to be placed in org.eclipse.ui
Comment 3 Sebastian Davids CLA 2002-12-01 12:00:00 EST
Created attachment 2601 [details]
adds next/previous button, rearranges menus, different remove icon

@@ Implementation notes BookmarkNavigator @@

viewer
- changed its type from StructuredViewer to TreeViewer
- createPartControl() already assigned a TreeViewer
- saves casting to get its Tree

removeAction
- new icons

goToNextBookmark()
goToPreviousBookmark()
- package visible so that the Action classes can call them
- wrap-around behavior
- if no bookmark is selected and one clicks on next/previous the first bookmark
will be opened
- opens the bookmark's editor w/ a BusyIndicator

handleBookmarkCountChanged()
- package visible so that BookmarkContentProvider can call it

handleSelectionChanged()
- multi-select not allowed -> disable icons

addContributions()
- removed toolbar button for "Go to"; Search View does not show a similar
button; next/previous fill it's function
- "Copy to Clipboard" now has the normal icon instead of the colored one; also
a "disabled" version
- "Go to" still on context menu; disabled icon for "Go to File"; hover version
not needed for context menu
- added disabled icon version for "Copy to Clipboard"
- hook w/ next/previous on Navigate menu

fillContextMenu()
- reordered menu items to be consistent w/ Search View 

@@ Notes on icons @@

Copied icons from org.eclipse.search and renamed them (remitem_tsk.gif,
prev_nav.gif, next_nav.gif).

prev_nav.gif and next_nav.gif previously existed in their enabled version only.


I did not overwrite the existing ones (remtsk_tsk.gif, rembkmrk_tsk.gif)
because other clients might already use them.

@@ Other notes @@

GoToNextBookmarkAction
- new class

GoToPreviousBookmarkAction
- new class

IBookmarkHelpContextIds
- added the two new actions

BookmarkContentProvider
- now informs its bookmarksView if a bookmark has been added/removed

OpenBookmarkAction
- implements Runnable so one can use a BusyIndicator ... opening an outside
editor might take a "long" time

MarkerUtil
- new icons for "remtsk", "remtsk_grey", "remtsk_disabled" in imageDescriptors
HashMap
Comment 4 Sebastian Davids CLA 2002-12-01 12:03:21 EST
I changed the tooltips to "Show Next Bookmark"/"Show Previous Bookmark" between
making the screenshots and creating the patch.
Comment 5 Sebastian Davids CLA 2002-12-01 12:05:10 EST
Icons are in a ZIP-File.
Comment 6 Sebastian Davids CLA 2002-12-02 04:27:28 EST
Colored versions of the <- and -> icons are already in ctool16 named
next_nav.gif and prev_nav.gif -- no corresponding enabled and diabled versions
exist.

forward_nav.gif and backward_nav.gif are in clcl16/dlcl16/elcl16.

Users of ctool/next_nav.gif ctool/next_nav.gif might want to update to the "new"
ones.

Comment 7 Nick Edgar CLA 2002-12-02 10:20:00 EST
Chris to review.  Please ensure the patch hooks the global actions for 
Navigate / Next and Previous (IWorkbenchActionConstants.NEXT and PREVIOUS).
Comment 8 Sebastian Davids CLA 2002-12-02 14:11:47 EST
Context-menu:

Changed "Delete" to "Remove" to comply with Eclipes UI Guideline 2.3

Changed order to comply with 6.13
Comment 9 Nick Edgar CLA 2002-12-02 14:31:39 EST
Should leave as Delete since this hooks the global Edit / Delete action.
Also, the Tasks view uses Delete.
Comment 10 Sebastian Davids CLA 2002-12-02 15:18:40 EST
2.3
"
The term 'Delete' should be used when deleting an existing resource.
The term 'Remove' should be used to remove an object from a resource.
"

The label of the Tasks view "delete" could be changed to "remove" also; tasks
and bookmarks are markers not resources.

Or, should the guidelines be updated? -- It makes no sense if the basic views do
not "[a]dopt the labeling terminology of the workbench".

What's the point of differentiating in the guidelines when we'll hook all
"delete"/"remove" actions with  global delete (and thereby forced to use "delete")?
Comment 11 Nick Edgar CLA 2002-12-02 15:54:29 EST
I think guideline 2.3 needs to be clarified.  The example there refers to 
content within the file, not markers.  But even then, it's not clear to me 
that "Remove" should be used instead of "Delete".
Comment 12 Tod Creasey CLA 2006-06-22 10:54:00 EDT
There are currently no plans to work on this
Comment 13 Sebastian Davids CLA 2006-06-23 01:30:34 EDT
Should I update the patch?
Comment 14 Tod Creasey CLA 2006-06-26 08:10:25 EDT
Please do Sebastian - thanks
Comment 15 Mike Wilson CLA 2007-06-20 15:49:39 EDT
Assigning to KM to consider in the more general context of quickly moving focus between views and editors (i.e. you could use the arrow keys to move through the list if, when you select something and focus is given to the editor, there was an easy way to get focus back on the list)

Comment 16 Kevin McGuire CLA 2007-06-20 15:56:51 EDT
See bug #193608  which I've just entered on the more general problem.  I'm marking this one as dependent on the general one, assuming the general one addresses this problem sufficiently,
Comment 17 Dani Megert CLA 2008-12-17 03:57:08 EST
*** Bug 80894 has been marked as a duplicate of this bug. ***
Comment 18 Kevin McGuire CLA 2009-04-14 14:40:43 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 19 Eclipse Webmaster CLA 2019-09-06 15:37:36 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.