Bug 54671 - [Commands] [Services] HandlerSubmission with IPageSite doesn't work
Summary: [Commands] [Services] HandlerSubmission with IPageSite doesn't work
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 46207
Blocks:
  Show dependency tree
 
Reported: 2004-03-12 11:56 EST by Whitney Sorenson CLA
Modified: 2019-09-06 15:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Whitney Sorenson CLA 2004-03-12 11:56:29 EST
Build ID: I20040310. 

GEF's palette page, which due to the lack of a KeyBindingService, creates and 
registers its own HandlerSubmissions to enable actions. When a 
HandlerSubmission is created with a null argument for the IWorkbenchSite (first 
parameter in the constructor), the actions work on the page. When getSite() is 
specified instead, which returns the IPageSite for the page, the actions do not 
work on the page.
Comment 1 Douglas Pollock CLA 2004-03-16 12:33:56 EST
The site must be one of the sites reachable by 
workbenchWindow.getActivePage().getActivePart().getSite().  I'm sorry that 
isn't documented. 
Comment 2 Randy Hudson CLA 2004-03-16 13:44:29 EST
In that case, wouldn't it make more sense to use IWorkbenchPartSite instead of 
IWorkbenchSite?
Comment 3 Douglas Pollock CLA 2004-03-16 15:54:01 EST
One would assume that, wouldn't they?  :) 
 
This is a bug with HandlerSubmission, and hence a problem with Commands.  I'm 
going to reassign this to Chris, so he can think about what to do.  We'd been 
talking about this before, and the final solution might be to soup up the 
workbench to provide a stronger concept of nesting -- allowing us to see the 
entire nesting chain of workbench components. 
 
Comment 4 Randy Hudson CLA 2004-03-16 16:32:13 EST
You mean nesting "tree"?  See also bug 46207.
Comment 5 Douglas Pollock CLA 2004-11-05 15:39:53 EST
Yes, I do mean the services work. 
Comment 6 Michael Van Meekeren CLA 2006-04-21 13:22:08 EDT
Moving Dougs bugs
Comment 7 Paul Webster CLA 2006-09-28 15:13:06 EDT
Is this still a problem in 3.3?

PW
Comment 8 Denis Roy CLA 2007-06-22 09:32:35 EDT
Changes requested on bug 193523
Comment 9 Eclipse Webmaster CLA 2019-09-06 15:30:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.