Bug 6306

Summary: no shortcuts for reorg operations below cu level
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: erich_gamma
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 7731    
Bug Blocks:    

Description Adam Kiezun CLA 2001-11-26 08:55:36 EST
must provide shortcuts for cut/copy/paste/delete under 
the level of compilation unit
Comment 1 Adam Kiezun CLA 2001-11-26 10:48:32 EST
fixed delete for package viewer and outliner
Comment 2 Erich Gamma CLA 2001-11-26 11:48:44 EST
this is doable without further platform UI support our views have to register 
their actions "global action handlers"
Comment 3 Adam Kiezun CLA 2002-01-09 04:17:05 EST
*** Bug 7366 has been marked as a duplicate of this bug. ***
Comment 4 Adam Kiezun CLA 2002-01-16 10:33:53 EST
cannot access IActionBars from JavaOutlinePage
another thing is: what do we do when the shortcuts are pressed in the packages 
view? should Ctrl+C always be equal to 'Copy'? guess so.
Comment 5 Erich Gamma CLA 2002-01-17 04:31:11 EST
yes, ctrl-C should always refer to copy.

Can't you get to the action bars via the IPageSite. From the build notes:

The interface IPageBookViewPage has been introduced as an extension of IPage. 
It defines the methods init(IPageSite) and getSite(). The method init
(IPageSite) is called before createControl in the page's lifecycle. The 
IPageSite api includes the method registerContextMenu(String, MenuManager, 
ISelectionProvider) to allow the context menus to be registered. The class 
org.eclipse.ui.part.Page now implements IPageBookViewPage. 
Comment 6 Adam Kiezun CLA 2002-01-17 04:37:58 EST
i tried it in the Outliner and hit this: #7731 
Page::init(IPageSite pageSite) never called on JavaOutlinePage
Comment 7 Erich Gamma CLA 2002-01-17 04:41:36 EST
I've asked Randy to look into 7731
Comment 8 Erich Gamma CLA 2002-01-18 02:45:42 EST
please see annotation in 7731. Suspicion is that the JavaOutlinePage calls 
getSite() too early.
Comment 9 Adam Kiezun CLA 2002-01-29 05:24:50 EST
fixed 0129