| Summary: | Tooltip help for menu items (Delete/Rename/others?) need better context | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Ken Walker <ken_walker> |
| Component: | Client | Assignee: | Susan McCourt <susan> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 0.3 | ||
| Target Milestone: | 0.5 M2 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Ken Walker
Currently the method in which tooltips are provided and the fact that the commands are linked to this page this will have to be revisited after 0.4. command.tooltip could be extended to either:
static text (like today)
or
tooltipCallback
a function that returns a context appropriate tooltip, such as
function(data) {return "the most appropriate tooltip ever for " + data.items.Location;}
I think the main thing to be wary of is that it should be a synchronous return, so we wouldn't expose this to command service extensions, it would be mostly for our internal commands.
A separate piece of work (if needed) would be extending the support to plug-ins by having the code that maps extension points to commands do the work for it. It would require some kind of "describable" expression or parsing in the plugin properties that the extension mappings could read in order to produce the function. (kind of how we handle validationProperties->visibleWhen today).y support this if we ha
(In reply to comment #2) >(kind of how we handle validationProperties->visibleWhen today).y > support this if we ha "kind of how we handle mapping validationProperties->visibleWhen function today" (ignore garbled text). I annotated bug 370903 to capture this use case. I just noticed the git commands use a little trick...they reset the tooltip when visibleWhen is executed. This lets them put things like current branch name, in the tooltip. We may want to recommend this as the actual pattern. Because that is where you are going to know if you have one or more items, or which ones, etc. moving out of 0.5M2 to 0.5 milestone until we have more specific buckets for future I think we can consider this fixed by virtue of moving the "context menu" actions in the navigator to the selection menu. So there's no longer confusion about which items you are working with. |