Bug 6306 - no shortcuts for reorg operations below cu level
Summary: no shortcuts for reorg operations below cu level
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 7366 (view as bug list)
Depends on: 7731
Blocks:
  Show dependency tree
 
Reported: 2001-11-26 08:55 EST by Adam Kiezun CLA
Modified: 2002-01-29 05:24 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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