Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 166794

Summary: [variables] Copy variables shortcut key doesn't work after detail pane gets focus
Product: [Eclipse Project] Platform Reporter: Curtis Windatt <curtis.windatt.public>
Component: DebugAssignee: Curtis Windatt <curtis.windatt.public>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 75852    
Bug Blocks:    

Description Curtis Windatt CLA 2006-12-05 10:53:50 EST
Build ID: I20061129-1340

Steps To Reproduce:
1. Open variables view
2. Selecting variables and hitting Ctrl-C should copy the variables to the clipboard
3. Select text in the detail pane, Ctrl-C should copy the selected text to the clipboard
4. Select variables again.  Hitting Ctrl-C does not copy.


More information:
Due to the detail pane setting the copy action id to it's own text copy.  When the variables tree regains focus it can't replace the text copy action with its own copy action because that action was added through plugin.xml.
Comment 1 Curtis Windatt CLA 2006-12-05 10:56:47 EST
Wait until 75852 is committed before altering how actions are handled in variables view.
Comment 2 Darin Wright CLA 2006-12-08 10:24:07 EST
Propose to have the detail pane proxy save/restore the global actions contributed to the action bars as the tree loses/gains focus, to restore all contributed actions and their global action definition ids.
Comment 3 Darin Wright CLA 2006-12-08 16:56:54 EST
The action bar does not have access to all contributed actions - only the actions on the toolbar (i.e. not the copy action in the context menu).

For now, we save/restore the copy action in the variable view.

Fixed. Please verify, Curtis.
Comment 4 Curtis Windatt CLA 2006-12-08 17:09:17 EST
Verified the fix

In the future we should look at ways of improving the action handling in the variables view to allow more flexibility for plugin contributed actions.  Requiring actions to be hard coded to get/keep key bindings could be a problem.