Bug 140650 - [PII] Missing shortcut keys in TPTP profiling context menu
Summary: [PII] Missing shortcut keys in TPTP profiling context menu
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Eugene Chan CLA
QA Contact:
URL:
Whiteboard: housecleaned460 closed460
Keywords: plan
Depends on:
Blocks:
 
Reported: 2006-05-08 15:31 EDT by Qiyan Li CLA
Modified: 2016-05-05 11:00 EDT (History)
2 users (show)

See Also:
ewchan: review-
ewchan: review-


Attachments
Proposed Patch (78.09 KB, patch)
2008-03-26 11:56 EDT, Ritwik Lodhiya CLA
no flags Details | Diff
Patch (115.63 KB, patch)
2008-03-27 18:23 EDT, Ritwik Lodhiya CLA
no flags Details | Diff
Proposed Patch (115.79 KB, text/plain)
2008-03-28 12:33 EDT, Ritwik Lodhiya CLA
no flags Details
Patch! (102.96 KB, patch)
2008-03-31 13:37 EDT, Ritwik Lodhiya CLA
no flags Details | Diff
Patch (121.58 KB, patch)
2008-04-09 14:09 EDT, Ritwik Lodhiya CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Qiyan Li CLA 2006-05-08 15:31:25 EDT
Many action items (Start, Stop, Attach, Detach, Terminate, Pause, Resume, Open with, and the views themselves) in the TPTP profiling context menu do not have shortcut keys attached to them.  These shortcuts are necessary for accessibility purposes.
Comment 1 amehrega CLA 2006-10-19 14:14:26 EDT
Re-targeting to 4.4.
Comment 2 Eugene Chan CLA 2007-01-31 18:32:57 EST
Target to future. Cannot be contained in 4.4 due to limitation of resource.
Comment 3 jkubasta CLA 2008-02-12 15:42:13 EST
translation changes needed in i6
Comment 4 jkubasta CLA 2008-03-12 10:21:29 EDT
Just a reminder that this fix is needed by 3/21
Comment 5 Ritwik Lodhiya CLA 2008-03-26 11:56:33 EDT
Created attachment 93626 [details]
Proposed Patch 

Sorry for the lateness in this patch. But this should hopefullly be everything that is needed for the shortcuts to work. 

I have changed the structure a little it and have added a couple of files. There is only one handler in use for the various instances of the action items that re created and it seems to work fine for all. The problem of action items being used even if they were supposed to be disabled is also resolved.
Comment 6 Eugene Chan CLA 2008-03-26 13:58:57 EDT
The following shortcut combo seems to be available, please update you patch as possible. The multiple keys combo is not useful for user.

Ctrl+M Start monitoring
Ctrl+N Pause monitoring
Ctrl+D Detach
Ctrl+R Attach
Ctrl+T Terminate
Ctrl+G Run GC
Ctrl+R Refresh
Comment 7 Ritwik Lodhiya CLA 2008-03-27 18:23:23 EDT
Created attachment 93897 [details]
Patch

This patch resolves the all ious outstanding issues. All keys work properly now. 

Most keys have been shortened, but it still has two modifiers ahead of it CTRL+ALT+<key>
Comment 8 Ritwik Lodhiya CLA 2008-03-28 12:33:42 EDT
Created attachment 93999 [details]
Proposed Patch
Comment 9 Ritwik Lodhiya CLA 2008-03-28 12:42:14 EDT
Sorry I had forgotten to include the keys on Heap Dump action in the previous patch. This final patch is working fine for the following actions: 

Pause                                 (Ctrl Alt P)
Start                                 (Ctrl Alt S)
Attach                                (Ctrl Alt A)
Detach                                (Ctrl Alt D)
Refresh Views                         (Ctrl Alt R)
Refresh Options                       (Ctrl Alt O)
Run Garbage Collection                (Ctrl Alt Shift G)
Heap Dump (Collect Object References) (Ctrl Alt Shift O)

I just tested on the 03/28 driver qith patch applied on latest CVS code and everything seems to work fine.  
Comment 10 Eugene Chan CLA 2008-03-28 15:51:21 EDT
The patch contains errors in it. The wrong GC action is used for TI agent, and there is memory leak in actions and handlers. I will update and create the missing parts and attach a new patch here. 
Comment 11 Ritwik Lodhiya CLA 2008-03-31 13:37:33 EDT
Created attachment 94264 [details]
Patch!

Sorry about the RunGCControlItem :(. I have restored the correct Garbage Collection for TI and PI agents. Also I have remocved the many Handler classes and created one ControlItemHandler which generates handlers for all the IControlItem Actions. That should save a bit of space. 

I've removed the context from the patch, but it seems the keys will not be active if it switches from the Profiling Navigator to one of the views :(. However, that only happens if the user selcts something like Heap Dump or Garbage Collection. The focus does not change with all action items.
Comment 12 jkubasta CLA 2008-03-31 14:14:03 EDT
Is this patch ready for inclusion in i6?  or should it be deferred to i7?
Comment 13 Eugene Chan CLA 2008-03-31 15:18:14 EDT
Hi Ritwik, 
Ehe patch does not work for Run GC on PI agent. As discussed, the Run GC actions of TI and PI share the same key binding should have its own extension and not sharing the same action ID. They should be treated as two implementations of the same command id.

All other action bindings seem to be okay. 

Joanna, I propose to defer this to i7.
Comment 14 Ritwik Lodhiya CLA 2008-04-09 14:09:46 EDT
Created attachment 95401 [details]
Patch
Comment 15 Eugene Chan CLA 2008-04-16 18:25:32 EDT
The patch does not work when I have both TI and PI agent running at the same time.
Comment 16 jkubasta CLA 2008-05-23 09:09:33 EDT
Deferral to future with PMC approval
Comment 17 Eugene Chan CLA 2009-02-18 12:18:59 EST
Update priority field to P2.
Comment 18 Paul Slauenwhite CLA 2009-06-30 07:01:41 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 19 Paul Slauenwhite CLA 2009-06-30 10:24:30 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since the originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.