Bug 211012 - streamline the organization and presentation of the Task List and Task Editor popup menu
Summary: streamline the organization and presentation of the Task List and Task Editor...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 minor (vote)
Target Milestone: 3.2   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
: 193845 (view as bug list)
Depends on: 165708 202880 210840 214670 220898 226226 262610
Blocks:
  Show dependency tree
 
Reported: 2007-11-26 23:45 EST by Mik Kersten CLA
Modified: 2010-12-27 10:34 EST (History)
4 users (show)

See Also:


Attachments
mylyn/context/zip (7.22 KB, application/octet-stream)
2009-05-30 06:04 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mik Kersten CLA 2007-11-26 23:45:48 EST
Let's use this bug to collect improvements planned for the Mylyn 3.0 cycle.
Comment 1 Mik Kersten CLA 2007-12-13 00:06:39 EST
*** Bug 193845 has been marked as a duplicate of this bug. ***
Comment 2 Eugene Kuleshov CLA 2007-12-13 00:21:56 EST
The following sections of the Eclipse "User Interface Guidelines" document provide recommendations for a common order for menu commands:

http://wiki.eclipse.org/User_Interface_Guidelines#Context_Menus
http://wiki.eclipse.org/User_Interface_Guidelines#Menus_2
http://wiki.eclipse.org/User_Interface_Guidelines#Context_Menus_2
Comment 3 Steffen Pingel CLA 2008-01-22 22:12:36 EST
We should investigate using the org.eclipse.ui.menus extension point that was introduced in Eclipse 3.3. It should enable us to get rid of a lot of the manual population of context menus:

 http://wiki.eclipse.org/Menu_Contributions
Comment 4 Mik Kersten CLA 2008-01-31 19:31:55 EST
+1  It would be great to get rid of that custom extension point.
Comment 5 Eugene Kuleshov CLA 2008-01-31 22:27:42 EST
Mik, can you please remind me again why object contribution can't be used there?
Comment 6 Mik Kersten CLA 2008-02-18 23:49:02 EST
(In reply to comment #5)
> Mik, can you please remind me again why object contribution can't be used there?

The task editor is not an element selected in a viewer, so instead we do the equivalent of what we would do if it was.  As per the note in the code I'm sure that there's a better way (e.g. comment#3).
Comment 7 Eugene Kuleshov CLA 2008-02-19 00:51:32 EST
Workbench had an API to populate menus automatically probably since before 3.0. See IWorkbenchPartSite.registerContextMenu() and org.eclipse.ui.popupMenus extension point. Selection provider passed to registerContextMenu() is used to determine object contribution, so editor could just provide corresponding ISelectionProvider implementation.
Comment 8 Eugene Kuleshov CLA 2008-02-29 02:05:32 EST
"Clone task/query" action may make more sense under the "New" submenu then under confusing "Operations" submenu
Comment 9 Rolf Kleef CLA 2008-02-29 04:27:17 EST
(as per request of Mik, cross-posting my comment under bug 220364 as input for the 3.0 improvement discussion)

[...] the whole task list context menu might benefit from some reorganisation, so here's my 2 cents after a few weeks of Mylyn+Tasktop:

- The "move" menu seems to "symlink"(?) tasks from remote repositories into other local categories/queries; clone seems to do it into remote task repositories? I'd expect them together, and maybe separate from the schedule for/mark as items?
- I actually have no idea what "copy details" will do, just starting trying it a bit (I'd expect a "paste" or so with it, or a task-level "cut-copy-paste" set)
- I'd separate the import/export of tasks and queries, maybe make that a "Import/export" item rather than "operations"?
- I'm actually somewhat confused on the difference between categories and queries in terms of how I use them to group tasks, and how they deal with tasks within them: pressing delete always makes me read the popup to make sure it will do what I expect (in other words: my expectation of what will happen when I select "delete" is not always 100% deterministic, especially with the "remove from category" option next to it)
- Likewise: I can create a "new local task", or a "new task" and then select "local tasks" as the repository. It saves a click or two for adding local tasks, but adds a little confusion maybe as well.

Hope this is useful :-) (I haven't checked the context menu guidelines links above yet myself)
Comment 10 Mik Kersten CLA 2008-02-29 12:15:16 EST
Yes, clone is most likely destined for the New submenu.  But before doing that I want us to figure out where to put the Import/Export stuff.  I wonder if it's OK to have a menu entry called "Import/Export"?  I'm not sure if you're allowed slashes in menus, maybe it's worth trying out.
Comment 11 Eugene Kuleshov CLA 2008-02-29 12:40:14 EST
(In reply to comment #10)
> I wonder if it's OK to have a menu entry called "Import/Export"?  I'm not sure if you're allowed
> slashes in menus, maybe it's worth trying out.

Source / Surround With / Try/catch block
Comment 12 Mik Kersten CLA 2008-06-12 16:36:19 EDT
The move of clone actions to "New", and renaming of "Operations" to "Import/Export" is done.  We can consider additional changes in the 3.1 cycle.
Comment 13 Steffen Pingel CLA 2009-01-16 01:14:29 EST
We should also review the search view menu. I have made some modifications to the ordering of elements.
Comment 14 Mik Kersten CLA 2009-01-27 17:25:49 EST
Here's the design from our last call.

New Task pull-down:
* No default repository, use the current selection for the default action.  If no selection, create a local task.  Or always create local tasks.
* Only show repositories relevant to active working set.
* Then show New Query, New Category, after separator.

Popup menu:
* "Mark as" is missing icons
* Copy Details becomes a submenu, with default copy action bound to Ctrl+C
* "Schedule for" and "Mark as" go to the new section
* Remove "Import and Export"?  Need to design import/export story.

Task editor menu:
* Get rid of undo/redo, RCP apps might need to put this on a toolbar
Comment 15 Steffen Pingel CLA 2009-05-30 06:04:04 EDT
I have restructured the menu of the task list, task editor, active task link, and task trim per our discussion on a conference call. The code that constructs the menu is in RepositoryElementActionGroup and is now shared between the different UI parts. I have fixed the enablement of the context and mark as menu. These should now show up consistently in the task editor.
Comment 16 Steffen Pingel CLA 2009-05-30 06:04:12 EDT
Created attachment 137743 [details]
mylyn/context/zip
Comment 17 Steffen Pingel CLA 2009-06-01 16:34:01 EDT
Some additional streamlining:
* Moved Schedule For menu above Mark as
* Added New > Subtask menu to Task Editor
Comment 18 Steffen Pingel CLA 2009-06-01 18:41:58 EDT
Fixed:
* Enablement of Mark as menu for local task editors
* Enablement of Delete action
* Menu for active task link when no task is active
Comment 19 Steffen Pingel CLA 2009-06-01 18:47:36 EDT
Also enabled the Mark Complete/Incomplete shortcuts in the task editor.
Comment 20 Steffen Pingel CLA 2009-06-05 17:37:16 EDT
Fixed:
* Activate Action and Deactivate action did not operate on active task when activated from the active task hyperlink
Comment 21 Mik Kersten CLA 2009-06-11 15:01:04 EDT
Steffen: I'm finding that Context is in a weird spot when using it in the editor.  Why not move it to the same section as "Move to"?  The "Import and Export" and "Repository" can go there as well (afaik those only popup from the Task List).  In other words, we end up with submenus in only two, not three spots in the popup menu.
Comment 22 Steffen Pingel CLA 2009-06-12 17:04:12 EDT
Yes, that makes sense to me and avoids an extra group. I have committed the change.
Comment 23 Mik Kersten CLA 2009-06-17 18:08:22 EDT
Steffen: I'm finding that everything is working well except for the Copy actions.  I do miss having a good default copy action in the main menu.
Comment 24 Steffen Pingel CLA 2009-06-17 18:49:25 EDT
Can you file a new bug and make a suggestion how to fix that? I have been getting fairly used to navigating the menu by now but it did take a few days.
Comment 25 Mik Kersten CLA 2009-06-23 01:39:18 EDT
It can wait until the next UI review.  I don't have any great suggestions.
Comment 26 Steffen Pingel CLA 2010-12-27 10:34:16 EST
While the org.eclipse.ui.popupMenus extension-point has not been deprecated for 3.3 it is my understanding that it is recommended to use org.eclipse.ui.menus instead.